GET_INSTANCE_ID
Signature
int GET_INSTANCE_ID();Returns int
Usage
local retval = GetInstanceId()
-- always works, by hash
local retval = Citizen.InvokeNative(0x9f1c4383, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetInstanceId();
// by hash
const retval = Citizen.invokeNative('0x9f1c4383', Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x9f1c4383);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.