simplify IsPlayerConnected example

Co-authored-by: Tixx <83774803+WiserTixx@users.noreply.github.com>
This commit is contained in:
Samuel Towers 2025-01-17 08:43:41 +11:00 committed by GitHub
parent 69be1672b4
commit c6bef17098
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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