RedM Natives

SET_CLIENT_CONFIG_BOOL

Sets the value of a client configuration flag.

Hash0xD174EF7E
Runtime nameSetClientConfigBool
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

void SET_CLIENT_CONFIG_BOOL(int flagIndex, BOOL enabled);

Parameters

NameTypeDescription
flagIndexint

The index of the configuration flag to set.

enabledBOOL

Whether to enable or disable the flag.

Returns void

Description

Cfx.re native reference

enum ClientConfigFlag
{
    WeaponsNoAutoReload = 0,
	UIVisibleWhenDead = 1,
	DisableDeathAudioScene = 2,
	DisableRemoteAttachments = 3
}

Sets the value of a client configuration flag. This native allows enabling or disabling specific one-time client-side features.

Usage

Lua
SetClientConfigBool(flagIndex, enabled)

-- always works, by hash
Citizen.InvokeNative(0xd174ef7e, flagIndex, enabled)
JavaScript and C#
JavaScript
SetClientConfigBool(flagIndex, enabled);

// by hash
Citizen.invokeNative('0xd174ef7e', flagIndex, enabled);
C#
Function.Call((Hash)0xd174ef7e, flagIndex, enabled);

See also

Sources

Cfx.re native reference

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