RedM Natives

GET_PLAYER_GUID

Hash0xE52D9680
Runtime nameGetPlayerGuid
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

char* GET_PLAYER_GUID(char* playerSrc);

Parameters

NameTypeDescription
playerSrcchar*—

Returns char*

Usage

Lua
local retval = GetPlayerGuid(playerSrc)

-- always works, by hash
local retval = Citizen.InvokeNative(0xe52d9680, playerSrc, Citizen.ResultAsString())
JavaScript and C#
JavaScript
const retval = GetPlayerGuid(playerSrc);

// by hash
const retval = Citizen.invokeNative('0xe52d9680', playerSrc, Citizen.returnResultAnyway(), Citizen.resultAsString());
C#
string retval = Function.Call<string>((Hash)0xe52d9680, playerSrc);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.