PedGetName
Description
Returns the name of a given ped as listed in default.idb.
function PedGetName(ped) --[[ ... ]] end
Parameters
ped
:integer
- Ped to display the name of.
Return Values
name
:string
- The name of the ped.
Example
Prints "N_Jimmy" on the screen.
TextPrintString(PedGetName(gPlayer), 1, 1)