mirror of
https://github.com/BeamMP/Docs.git
synced 2025-07-02 16:05:47 +00:00
simplify IsPlayerConnected example
Co-authored-by: Tixx <83774803+WiserTixx@users.noreply.github.com>
This commit is contained in:
parent
69be1672b4
commit
c6bef17098
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user