Make Player Stats Retrievable Within Lua (#3199)

This commit is contained in:
kikkin_yo_azzez
2024-06-01 05:57:21 -05:00
committed by GitHub
parent 9baaf42b79
commit 0e7b5c1d37
3 changed files with 63 additions and 4 deletions

View File

@ -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`

View File

@ -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)
```