mirror of
https://github.com/BeamMP/Docs.git
synced 2025-07-01 23:45:46 +00:00
simplify printing player name
Co-authored-by: Tixx <83774803+WiserTixx@users.noreply.github.com>
This commit is contained in:
parent
e06797dd23
commit
318a80ed1c
@ -485,9 +485,7 @@ Gets the display-name of the player.
|
|||||||
Example:
|
Example:
|
||||||
```lua
|
```lua
|
||||||
local player_id = 4
|
local player_id = 4
|
||||||
local player_name = MP.GetPlayerName(player_id)
|
print(MP.GetPlayerName(player_id)) -- Get the name of the player with ID 4
|
||||||
|
|
||||||
print(player_name)
|
|
||||||
```
|
```
|
||||||
Output:
|
Output:
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user