HUDClient

setMpGamerTagName

SET_MP_GAMER_TAG_NAME0xDEA2B8283BAA3944

The GTA V native SET_MP_GAMER_TAG_NAME of the HUD namespace, as LS:MP client scripts call it: the global function setMpGamerTagName, in JavaScript and in Lua.

SignatureJavaScript
setMpGamerTagName(gamerTagId: number, string: string): void
SignatureLua
setMpGamerTagName(gamerTagId: integer, string: string)

Usage

JavaScript
setMpGamerTagName(gamerTagId, string);
Lua
setMpGamerTagName(gamerTagId, string)

Parameters

ParameterTypeJavaScriptLua
gamerTagIdintnumberinteger
stringstringstringstring

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
HUD HUD
In the game
void SET_MP_GAMER_TAG_NAME(int gamerTagId, const char* string)
Hash
0xDEA2B8283BAA3944

Open in the interactive natives reference