getPlayerName
GET_PLAYER_NAME0x6D0DE6A7B5DA71F8The GTA V native GET_PLAYER_NAME of the PLAYER namespace, as LS:MP client scripts call it: the global function getPlayerName, in JavaScript and in Lua.
getPlayerName(player: Player): stringgetPlayerName(player: Player): stringUsage
JavaScript
const text = getPlayerName(player);Lua
local text = getPlayerName(player)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
player | Player | number | integer |
Returns
string JavaScript string, Lua stringReference
- Namespace
- Player PLAYER
- In the game
const char* GET_PLAYER_NAME(Player player)- Hash
0x6D0DE6A7B5DA71F8