fix self doc (#3319)
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

This commit is contained in:
Quentin 2024-07-09 18:42:32 +02:00 committed by GitHub
parent 64faa400b1
commit 8b7cbda946
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 9 deletions

View File

@ -24,34 +24,34 @@ integer = self.get_ped()
integer = self.get_id()
```
### `get_ped()`
### `get_pos()`
- **Returns:**
- `vec3`: Position of our ped.
**Example Usage:**
```lua
vec3 = self.get_ped()
vec3 = self.get_pos()
```
### `get_ped()`
### `get_rot()`
- **Returns:**
- `vec3`: Rotation of our ped.
**Example Usage:**
```lua
vec3 = self.get_ped()
vec3 = self.get_rot()
```
### `get_ped()`
### `get_veh()`
- **Returns:**
- `integer`: Script handle of our current vehicle.
**Example Usage:**
```lua
integer = self.get_ped()
integer = self.get_veh()
```

View File

@ -29,7 +29,7 @@ namespace lua::self
// Lua API: Function
// Table: self
// Name: get_ped
// Name: get_pos
// Returns: vec3: Position of our ped.
static Vector3 get_pos()
{
@ -38,7 +38,7 @@ namespace lua::self
// Lua API: Function
// Table: self
// Name: get_ped
// Name: get_rot
// Returns: vec3: Rotation of our ped.
static Vector3 get_rot()
{
@ -47,7 +47,7 @@ namespace lua::self
// Lua API: Function
// Table: self
// Name: get_ped
// Name: get_veh
// Returns: integer: Script handle of our current vehicle.
static Vehicle get_veh()
{