fix self doc (#3319)

This commit is contained in:
Quentin 2024-07-09 18:42:32 +02:00 committed by GitHub
parent 3e48c2e6d5
commit 270ff255c2
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()
{