The Lab
ENTITY native

_SET_MATERIAL_FILL_LEVEL_FOR_ENTITY

returns void4 paramsbuild 1207

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

C
void _SET_MATERIAL_FILL_LEVEL_FOR_ENTITY(Entity entity, int expressionType, const char* dofName, float fillState); // 0x669655FFB29EF1A9 b1207

Parameters

#NameType
1entityEntity
2expressionTypeint
3dofNameconst char*
4fillStatefloat

Facts

Facts about _SET_MATERIAL_FILL_LEVEL_FOR_ENTITY
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.

Lua
Citizen.InvokeNative(0x669655FFB29EF1A9, -- _SET_MATERIAL_FILL_LEVEL_FOR_ENTITY
  PlayerPedId(), -- Entity entity
  0, -- int expressionType
  "text", -- const char* dofName
  0.0 -- float fillState
)
JavaScript
// 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
);
C#
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
);
All ENTITY natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.