lua doc: add self table doc and update doc for previous changes that forgot to run the doc gen script (#3318)

This commit is contained in:
Quentin
2024-07-09 18:14:15 +02:00
committed by GitHub
parent 6bbaaa398e
commit 64faa400b1
4 changed files with 87 additions and 2 deletions

View File

@ -5,26 +5,50 @@ namespace lua_self = self;
namespace lua::self
{
// Lua API: Table
// Name: self
// Table for retrieving data or info about our own player object.
// Lua API: Function
// Table: self
// Name: get_ped
// Returns: integer: Script handle of our ped.
static Ped get_ped()
{
return lua_self::ped;
}
// Lua API: Function
// Table: self
// Name: get_id
// Returns: integer: Our player id.
static Player get_id()
{
return lua_self::id;
}
// Lua API: Function
// Table: self
// Name: get_ped
// Returns: vec3: Position of our ped.
static Vector3 get_pos()
{
return lua_self::pos;
}
// Lua API: Function
// Table: self
// Name: get_ped
// Returns: vec3: Rotation of our ped.
static Vector3 get_rot()
{
return lua_self::rot;
}
// Lua API: Function
// Table: self
// Name: get_ped
// Returns: integer: Script handle of our current vehicle.
static Vehicle get_veh()
{
return lua_self::veh;