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