DECOR_SET_BOOL
This function sets metadata of type bool to specified entity.
Hash
0xFE26E4609B1C3772Runtime name
DecorSetBoolNamespaceDECORATOR
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x6B1E8E2ED1335B71Signature
BOOL DECOR_SET_BOOL(Entity entity, const char* propertyName, BOOL value);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
propertyName | const char* | — |
value | BOOL | — |
Returns BOOL
Description
This function sets metadata of type bool to specified entity.
Usage
local retval = DecorSetBool(entity, propertyName, value)
-- always works, by hash
local retval = Citizen.InvokeNative(0xFE26E4609B1C3772, entity, propertyName, value, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = DecorSetBool(entity, propertyName, value);
// by hash
const retval = Citizen.invokeNative('0xFE26E4609B1C3772', entity, propertyName, value, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xFE26E4609B1C3772, entity, propertyName, value);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.