mirror of
https://github.com/BeamMP/Docs.git
synced 2026-02-16 10:30:56 +00:00
simplify IsPlayerConnected example
Co-authored-by: Tixx <83774803+WiserTixx@users.noreply.github.com>
This commit is contained in:
@@ -484,9 +484,7 @@ Whether the player is connected and if the server has received a UDP packet from
|
||||
Example:
|
||||
```lua
|
||||
local player_id = 8
|
||||
local conn_status = MP.IsPlayerConnected(player_id)
|
||||
|
||||
print(connStatus)
|
||||
print(MP.IsPlayerConnected(player_id)) -- Check if player with ID 8 is properly connected.
|
||||
```
|
||||
Output:
|
||||
```lua
|
||||
|
||||
Reference in New Issue
Block a user