From 270ff255c283be94721f7045b5c7074ee2b17272 Mon Sep 17 00:00:00 2001 From: Quentin <837334+xiaoxiao921@users.noreply.github.com> Date: Tue, 9 Jul 2024 18:42:32 +0200 Subject: [PATCH] fix self doc (#3319) --- docs/lua/tables/self.md | 12 ++++++------ src/lua/bindings/self.cpp | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/lua/tables/self.md b/docs/lua/tables/self.md index 3acc6a3f..a8ecb53f 100644 --- a/docs/lua/tables/self.md +++ b/docs/lua/tables/self.md @@ -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() ``` diff --git a/src/lua/bindings/self.cpp b/src/lua/bindings/self.cpp index 8e270e53..6580b832 100644 --- a/src/lua/bindings/self.cpp +++ b/src/lua/bindings/self.cpp @@ -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() {