RedM Natives

DECOR_SET_BOOL

This function sets metadata of type bool to specified entity.

Hash0xFE26E4609B1C3772
Runtime nameDecorSetBool
NamespaceDECORATOR
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x6B1E8E2ED1335B71

Signature

BOOL DECOR_SET_BOOL(Entity entity, const char* propertyName, BOOL value);

Parameters

NameTypeDescription
entityEntity—
propertyNameconst char*—
valueBOOL—

Returns BOOL

Description

This function sets metadata of type bool to specified entity.

Usage

Lua
local retval = DecorSetBool(entity, propertyName, value)

-- always works, by hash
local retval = Citizen.InvokeNative(0xFE26E4609B1C3772, entity, propertyName, value, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = DecorSetBool(entity, propertyName, value);

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

Sources

alloc8or RDR3 NativeDB

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