DECOR_GET_FLOAT
Returns the float value of the decorator propertyName on entity.
Signature
float DECOR_GET_FLOAT(Entity entity, const char* propertyName); // 0xE5FF70CD842CA9D4 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | propertyName | const char* |
Facts
| Name | DECOR_GET_FLOAT |
|---|---|
| Hash | 0xE5FF70CD842CA9D4 |
| Namespace | |
| Returns | float |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xE5FF70CD842CA9D4, -- DECOR_GET_FLOAT
PlayerPedId(), -- Entity entity
"text", -- const char* propertyName
Citizen.ResultAsFloat()
)
print(result)const result = Citizen.invokeNative("0xE5FF70CD842CA9D4", // DECOR_GET_FLOAT
PlayerPedId(), // Entity entity
"text", // const char* propertyName
Citizen.resultAsFloat()
);
console.log(result)float result = Function.Call<float>((Hash)0xE5FF70CD842CA9D4, // DECOR_GET_FLOAT
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.