Make Player Stats Retrievable Within Lua (#3199)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
Table containing helper functions for network related features.
|
||||
|
||||
## Functions (13)
|
||||
## Functions (15)
|
||||
|
||||
### `trigger_script_event(bitset, _args)`
|
||||
|
||||
@@ -170,4 +170,28 @@ Sends a chat message to the specified player. Other players would not be able to
|
||||
network.send_chat_message_to_player(player_idx, msg)
|
||||
```
|
||||
|
||||
### `get_player_rank(pid)`
|
||||
|
||||
Call get_player_rank(playerID)
|
||||
|
||||
- **Parameters:**
|
||||
- `pid` (int)
|
||||
|
||||
**Example Usage:**
|
||||
```lua
|
||||
network.get_player_rank(pid)
|
||||
```
|
||||
|
||||
### `get_player_rp(pid)`
|
||||
|
||||
Call get_player_rp(playerID)
|
||||
|
||||
- **Parameters:**
|
||||
- `pid` (int)
|
||||
|
||||
**Example Usage:**
|
||||
```lua
|
||||
network.get_player_rp(pid)
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user