DECOR_SET_FLOAT
Sets the decorator propertyName on entity to the float value, returning true on success.
Signature
BOOL DECOR_SET_FLOAT(Entity entity, const char* propertyName, float value); // 0x238F8B0C1C7FE834 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | propertyName | const char* |
| 3 | value | float |
Facts
| Name | DECOR_SET_FLOAT |
|---|---|
| Hash | 0x238F8B0C1C7FE834 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x238F8B0C1C7FE834, -- DECOR_SET_FLOAT
PlayerPedId(), -- Entity entity
"text", -- const char* propertyName
0.0 -- float value
)
if result then
-- ...
end// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x238F8B0C1C7FE834", // DECOR_SET_FLOAT
PlayerPedId(), // Entity entity
"text", // const char* propertyName
0.0, // float value
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x238F8B0C1C7FE834, // DECOR_SET_FLOAT
API.PlayerPedId(), // Entity entity
"text", // const char* propertyName
0.0f // float value
);Related DECORATOR natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.