{"hash":"0x669655FFB29EF1A9","ns":"ENTITY","name":"_SET_MATERIAL_FILL_LEVEL_FOR_ENTITY","slug":"_SET_MATERIAL_FILL_LEVEL_FOR_ENTITY","official":false,"named":true,"luaName":"SetMaterialFillLevelForEntity","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"entity","type":"Entity"},{"name":"expressionType","type":"int"},{"name":"dofName","type":"const char*"},{"name":"fillState","type":"float"}],"summary":"Sets a material fill level (e.g., stew, mug, chips, jugs).","descriptions":[{"source":"alloc8or","format":"text","body":"Sets a material fill level (e.g., stew, mug, chips, jugs).\nParams: p1: 0 or 2; name: depth/degree of fill label name; fillState: 0.0-1.0 (some up to 3.0)"},{"source":"vorp","format":"text","body":"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\nheres some of the labels/names found \ntumbler_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,"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/ENTITY/_SET_MATERIAL_FILL_LEVEL_FOR_ENTITY","markdownUrl":"https://natives.borderlinerp.com/natives/ENTITY/_SET_MATERIAL_FILL_LEVEL_FOR_ENTITY.md","snippets":{"lua":"SetMaterialFillLevelForEntity(entity, expressionType, dofName, fillState)","luaInvoke":"Citizen.InvokeNative(0x669655FFB29EF1A9, entity, expressionType, dofName, fillState)","js":"SetMaterialFillLevelForEntity(entity, expressionType, dofName, fillState);","jsInvoke":"Citizen.invokeNative('0x669655FFB29EF1A9', entity, expressionType, dofName, fillState + 0.0000001);","csharp":"Function.Call((Hash)0x669655FFB29EF1A9, entity, expressionType, dofName, fillState);","notes":["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."]}}