mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-23 01:02:23 +08:00
Make Player Stats Retrievable Within Lua (#3199)
This commit is contained in:
@ -7,8 +7,9 @@ All the infraction from the menu are listed below, used as parameter for adding
|
||||
network.flag_player_as_modder(player_index, infraction.CUSTOM_REASON, "My custom reason on why the player is flagged as a modder")
|
||||
```
|
||||
|
||||
## Infraction Count: 12
|
||||
## Infraction Count: 13
|
||||
|
||||
### `DESYNC_PROTECTION`
|
||||
### `TRIGGERED_ANTICHEAT`
|
||||
### `TRIED_CRASH_PLAYER`
|
||||
### `TRIED_KICK_PLAYER`
|
||||
|
@ -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