Lua documentation: commands (#1595)

* lua api: fix command call null context

* lua doc: generate commands doc
This commit is contained in:
Quentin
2023-07-05 00:31:06 +02:00
committed by GitHub
parent 89f57a9a4c
commit 167e1f8d54
5 changed files with 1132 additions and 2 deletions

View File

@ -22,7 +22,7 @@ namespace lua::command
const auto command = big::command::get(rage::joaat(command_name));
if (command)
command->call(args, {});
command->call(args);
}
// Lua API: Function
@ -44,7 +44,7 @@ namespace lua::command
if (player)
{
command->call(player, args, {});
command->call(player, args);
}
}
}