TmpMenu/docs/lua/tables/self.md
2024-07-09 18:42:32 +02:00

725 B

Table: self

Table for retrieving data or info about our own player object.

Functions (5)

get_ped()

  • Returns:
    • integer: Script handle of our ped.

Example Usage:

integer = self.get_ped()

get_id()

  • Returns:
    • integer: Our player id.

Example Usage:

integer = self.get_id()

get_pos()

  • Returns:
    • vec3: Position of our ped.

Example Usage:

vec3 = self.get_pos()

get_rot()

  • Returns:
    • vec3: Rotation of our ped.

Example Usage:

vec3 = self.get_rot()

get_veh()

  • Returns:
    • integer: Script handle of our current vehicle.

Example Usage:

integer = self.get_veh()