RedM Natives

IS_DUPLICITY_VERSION

Gets whether or not this is the CitizenFX server.

Hash0xCF24C52E
Runtime nameIsDuplicityVersion
NamespaceCFX
SideClient + server
NameOfficial
Docs

Signature

BOOL IS_DUPLICITY_VERSION();

Returns BOOL — A boolean value.

Description

Cfx.re native reference

Gets whether or not this is the CitizenFX server.

Usage

Lua
local retval = IsDuplicityVersion()

-- always works, by hash
local retval = Citizen.InvokeNative(0xcf24c52e, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsDuplicityVersion();

// by hash
const retval = Citizen.invokeNative('0xcf24c52e', Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xcf24c52e);

Sources

Cfx.re native reference

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