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