# ENTITY::_SET_MATERIAL_FILL_LEVEL_FOR_ENTITY

- **Hash:** `0x669655FFB29EF1A9`
- **Namespace:** ENTITY
- **Runtime name (Lua/JS):** `SetMaterialFillLevelForEntity`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/ENTITY/_SET_MATERIAL_FILL_LEVEL_FOR_ENTITY

## Signature

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

## Parameters

- `entity` (`Entity`)
- `expressionType` (`int`)
- `dofName` (`const char*`)
- `fillState` (`float`)

## Returns

`void`

## Description

*Source: 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)

*Source: 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

```lua
SetMaterialFillLevelForEntity(entity, expressionType, dofName, fillState)

-- always available, by hash
Citizen.InvokeNative(0x669655FFB29EF1A9, entity, expressionType, dofName, fillState)
```

### JavaScript

```js
SetMaterialFillLevelForEntity(entity, expressionType, dofName, fillState);

// by hash
Citizen.invokeNative('0x669655FFB29EF1A9', entity, expressionType, dofName, fillState + 0.0000001);
```

### C#

```csharp
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.*
