mirror of
https://github.com/BeamMP/Docs.git
synced 2026-04-23 08:47:19 +00:00
simplify printing player name
Co-authored-by: Tixx <83774803+WiserTixx@users.noreply.github.com>
This commit is contained in:
@@ -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:
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user