DECOR_REGISTER
Registers a decorator named propertyName with the value type so it can later be set on entities.
Decorators must be registered before they are set or read.
Signature
void DECOR_REGISTER(const char* propertyName, int type); // 0x0B253D644E3C36B3 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | propertyName | const char* |
| 2 | type | int |
Facts
| Name | DECOR_REGISTER |
|---|---|
| Hash | 0x0B253D644E3C36B3 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x0B253D644E3C36B3, -- DECOR_REGISTER
"text", -- const char* propertyName
0 -- int type
)Citizen.invokeNative("0x0B253D644E3C36B3", // DECOR_REGISTER
"text", // const char* propertyName
0 // int type
);Function.Call((Hash)0x0B253D644E3C36B3, // DECOR_REGISTER
"text", // const char* propertyName
0 // int type
);Related DECORATOR natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.