SET_CLIENT_CONFIG_BOOL
Sets the value of a client configuration flag.
Signature
void SET_CLIENT_CONFIG_BOOL(int flagIndex, BOOL enabled);Parameters
| Name | Type | Description |
|---|---|---|
flagIndex | int | The index of the configuration flag to set. |
enabled | BOOL | Whether to enable or disable the flag. |
Returns void
Description
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
SetClientConfigBool(flagIndex, enabled)
-- always works, by hash
Citizen.InvokeNative(0xd174ef7e, flagIndex, enabled)JavaScript and C#
SetClientConfigBool(flagIndex, enabled);
// by hash
Citizen.invokeNative('0xd174ef7e', flagIndex, enabled);Function.Call((Hash)0xd174ef7e, flagIndex, enabled);See also
GET_CLIENT_CONFIG_BOOLReturns whether a specific client configuration flag is currently enabled.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.