This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
Quentin 8b7cbda946
Some checks failed
Nightly Build / Check Recent Commit (push) Failing after 5s
Nightly Build / Build Nightly (push) Has been skipped
Nightly Build / Recreate Release (push) Has been skipped
fix self doc (#3319)
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()