SetPlayerName: Difference between revisions
From Onset Developer Wiki
No edit summary |
Tag: Undo |
(One intermediate revision by the same user not shown) | |
(No difference)
|
Latest revision as of 14:30, 30 December 2019
Description
Sets a players name which will appear on the nametag. Overrides the Steam nickname.
Syntax
SetPlayerName(player, name)
Parameters
- player
The player identifier. - name
The new name to set for the player. Limited to 32 characters.
Return Value
- This function returns nothing.
Example
AddCommand("superman", function(playerid)
SetPlayerName(playerid, "Superman")
AddPlayerChat(playerid, "Your name is now Superman.")
end)