Rewrite AC bypass (#2430)

* fix(anticheat): rewrite AC bypass again (the old one isn't detected but this is cleaner)
* fix(chat): some chat tweaks
* fix(anticheat): fix memory leak
* feat(lua): add is_player_friend
* fix(protections): fix possible false positives with the vehicle task mismatch protection
* feat(protections): add debug logs to trace false positive
* fix(spam): add some more stuff
This commit is contained in:
maybegreat48
2023-11-19 22:20:15 +00:00
committed by GitHub
parent b9b49790e7
commit 5d538cf53c
18 changed files with 79 additions and 92 deletions

View File

@ -2,7 +2,7 @@
Table containing helper functions for network related features.
## Functions (11)
## Functions (12)
### `trigger_script_event(bitset, _args)`
@ -106,6 +106,19 @@ network.flag_player_as_modder(player_idx, reason, custom_reason)
boolean = network.is_player_flagged_as_modder(player_idx)
```
### `is_player_friend(player_idx)`
- **Parameters:**
- `player_idx` (integer): Index of the player.
- **Returns:**
- `boolean`: Returns true if the given player is a friend.
**Example Usage:**
```lua
boolean = network.is_player_friend(player_idx)
```
### `get_flagged_modder_reason(player_idx)`
- **Parameters:**