GET_PLAYER_GUID
Signature
char* GET_PLAYER_GUID(char* playerSrc);Parameters
| Name | Type | Description |
|---|---|---|
playerSrc | char* | — |
Returns char*
Usage
local retval = GetPlayerGuid(playerSrc)
-- always works, by hash
local retval = Citizen.InvokeNative(0xe52d9680, playerSrc, Citizen.ResultAsString())JavaScript and C#
const retval = GetPlayerGuid(playerSrc);
// by hash
const retval = Citizen.invokeNative('0xe52d9680', playerSrc, Citizen.returnResultAnyway(), Citizen.resultAsString());string retval = Function.Call<string>((Hash)0xe52d9680, playerSrc);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.