mirror of
https://github.com/BeamMP/Docs.git
synced 2026-04-04 06:56:29 +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:
|
Example:
|
||||||
```lua
|
```lua
|
||||||
local player_id = 8
|
local player_id = 8
|
||||||
local conn_status = MP.IsPlayerConnected(player_id)
|
print(MP.IsPlayerConnected(player_id)) -- Check if player with ID 8 is properly connected.
|
||||||
|
|
||||||
print(connStatus)
|
|
||||||
```
|
```
|
||||||
Output:
|
Output:
|
||||||
```lua
|
```lua
|
||||||
|
|||||||
Reference in New Issue
Block a user