_SET_MATERIAL_FILL_LEVEL_FOR_ENTITY
Based on its name and signature, here is our best reading:
Sets a material fill level on the entity for the given expression and DOF name. Exact behavior is not documented.
Signature
void _SET_MATERIAL_FILL_LEVEL_FOR_ENTITY(Entity entity, int expressionType, const char* dofName, float fillState); // 0x669655FFB29EF1A9 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | expressionType | int |
| 3 | dofName | const char* |
| 4 | fillState | float |
Facts
| Name | _SET_MATERIAL_FILL_LEVEL_FOR_ENTITY |
|---|---|
| Hash | 0x669655FFB29EF1A9 |
| 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(0x669655FFB29EF1A9, -- _SET_MATERIAL_FILL_LEVEL_FOR_ENTITY
PlayerPedId(), -- Entity entity
0, -- int expressionType
"text", -- const char* dofName
0.0 -- float fillState
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x669655FFB29EF1A9", // _SET_MATERIAL_FILL_LEVEL_FOR_ENTITY
PlayerPedId(), // Entity entity
0, // int expressionType
"text", // const char* dofName
0.0 // float fillState
);Function.Call((Hash)0x669655FFB29EF1A9, // _SET_MATERIAL_FILL_LEVEL_FOR_ENTITY
API.PlayerPedId(), // Entity entity
0, // int expressionType
"text", // const char* dofName
0.0f // float fillState
);Related ENTITY natives
- SET_ENTITY_AS_MISSION_ENTITY
- SET_ENTITY_NO_COLLISION_ENTITY
- _SET_ENTITY_ANIM_AGE
- _SET_ENTITY_ANIM_CURRENT_TIME
- _SET_ENTITY_ANIM_SPEED
- _SET_ENTITY_ATTACHED_OFFSET
- _SET_ENTITY_CARCASS_TYPE
- _SET_ENTITY_CARRYING_FLAG
- _SET_ENTITY_COORDS_AND_HEADING
- _SET_ENTITY_COORDS_AND_HEADING_NO_OFFSET
- _SET_ENTITY_CUSTOM_PICKUP_RADIUS
- _SET_ENTITY_DISABLE_FIRE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.