RedM Natives

_SET_MATERIAL_FILL_LEVEL_FOR_ENTITY

Sets a material fill level (e.g., stew, mug, chips, jugs).

Hash0x669655FFB29EF1A9
Runtime nameSetMaterialFillLevelForEntity
NamespaceENTITY
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _SET_MATERIAL_FILL_LEVEL_FOR_ENTITY(Entity entity, int expressionType, const char* dofName, float fillState);

Parameters

NameTypeDescription
entityEntity—
expressionTypeint—
dofNameconst char*—
fillStatefloat—

Returns void

Description

alloc8or RDR3 NativeDB

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)

VORPCORE RDR3natives

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

Lua
SetMaterialFillLevelForEntity(entity, expressionType, dofName, fillState)

-- always works, by hash
Citizen.InvokeNative(0x669655FFB29EF1A9, entity, expressionType, dofName, fillState)
JavaScript and C#
JavaScript
SetMaterialFillLevelForEntity(entity, expressionType, dofName, fillState);

// by hash
Citizen.invokeNative('0x669655FFB29EF1A9', entity, expressionType, dofName, fillState + 0.0000001);
C#
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. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to 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 InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.