PedClient

setPedNameDebug

SET_PED_NAME_DEBUG0x98EFA132A4117BE1

The GTA V native SET_PED_NAME_DEBUG of the PED namespace, as LS:MP client scripts call it: the global function setPedNameDebug, in JavaScript and in Lua.

SignatureJavaScript
setPedNameDebug(ped: Ped, name: string): void
SignatureLua
setPedNameDebug(ped: Ped, name: string)

Usage

JavaScript
setPedNameDebug(ped, name);
Lua
setPedNameDebug(ped, name)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
namestringstringstring

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

NOTE: Debugging functions are not present in the retail version of the game.

*untested but char *name could also be a hash for a localized string

Reference

Namespace
Ped PED
In the game
void SET_PED_NAME_DEBUG(Ped ped, const char* name)
Hash
0x98EFA132A4117BE1

Open in the interactive natives reference