RedM Natives

DUPLICATE_FUNCTION_REFERENCE

Hash0xF4E2079D
Runtime nameDuplicateFunctionReference
NamespaceCFX
SideClient + server
NameOfficial
Docs

Signature

char* DUPLICATE_FUNCTION_REFERENCE(char* referenceIdentity);

Parameters

NameTypeDescription
referenceIdentitychar*—

Returns char*

Usage

Lua
local retval = DuplicateFunctionReference(referenceIdentity)

-- always works, by hash
local retval = Citizen.InvokeNative(0xf4e2079d, referenceIdentity, Citizen.ResultAsString())
JavaScript and C#
JavaScript
const retval = DuplicateFunctionReference(referenceIdentity);

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

See also

Sources

Cfx.re native reference

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