DECOR_GET_INT
Returns the integer value of the decorator propertyName on entity.
Signature
int DECOR_GET_INT(Entity entity, const char* propertyName); // 0x44DB62727762FD9B b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | propertyName | const char* |
Facts
| Name | DECOR_GET_INT |
|---|---|
| Hash | 0x44DB62727762FD9B |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x44DB62727762FD9B, -- DECOR_GET_INT
PlayerPedId(), -- Entity entity
"text", -- const char* propertyName
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0x44DB62727762FD9B", // DECOR_GET_INT
PlayerPedId(), // Entity entity
"text", // const char* propertyName
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x44DB62727762FD9B, // DECOR_GET_INT
API.PlayerPedId(), // Entity entity
"text" // const char* propertyName
);Related DECORATOR natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.