_SET_MATERIAL_FILL_LEVEL_FOR_ENTITY
Sets a material fill level (e.g., stew, mug, chips, jugs).
0x669655FFB29EF1A9SetMaterialFillLevelForEntitySignature
void _SET_MATERIAL_FILL_LEVEL_FOR_ENTITY(Entity entity, int expressionType, const char* dofName, float fillState);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
expressionType | int | — |
dofName | const char* | — |
fillState | float | — |
Returns void
Description
Sets a material fill level (e.g., stew, mug, chips, jugs).
Params: p1: 0 or 2; name: depth/degree of fill label name; fillState: 0.0-1.0 (some up to 3.0)
sets the fill in state for some objects like for the stew, coffee mug ,poker chips, jugs ? P1 is either 0 or 2 p2 seems to be a label/name p3 is the fill in state, max seems to be for some 3.0 (most is 1.0) - 0.0
heres some of the labels/names found
tumbler_fill, Canvas, Stew_Fill, from Chip01_Ctrl to Chip10_Ctrl, from empty_jug01_Ctrl to empty_jug20_Ctrl, from full_jug01_Ctrl to full_jug20_Ctrl, CTRL_cupFill, Food_DOF_Fill, from WhiteChip_Ctrl_0 to WhiteChip_Ctrl_10, from BlueChip_Ctrl_0 to BlueChip_Ctrl_10, from BlackChip_Ctrl_0 to BlackChip_Ctrl_10, from RedChip_Ctrl_0 to RedChip_Ctrl_10,
Usage
SetMaterialFillLevelForEntity(entity, expressionType, dofName, fillState)
-- always works, by hash
Citizen.InvokeNative(0x669655FFB29EF1A9, entity, expressionType, dofName, fillState)JavaScript and C#
SetMaterialFillLevelForEntity(entity, expressionType, dofName, fillState);
// by hash
Citizen.invokeNative('0x669655FFB29EF1A9', entity, expressionType, dofName, fillState + 0.0000001);Function.Call((Hash)0x669655FFB29EF1A9, entity, expressionType, dofName, fillState);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason. - The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.