{"hash":"0x406CCF555B04FAD3","ns":"PED","name":"_SET_PED_DRUNKNESS","slug":"_SET_PED_DRUNKNESS","official":false,"named":true,"luaName":"SetPedDrunkness","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"ped","type":"Ped"},{"name":"enabled","type":"BOOL"},{"name":"drunknessLevel","type":"float"}],"summary":"","descriptions":[{"source":"alloc8or","format":"text","body":"SOBER = 0.0f, SLIGHTLY_DRUNK = 0.25f, MODERATELY_DRUNK = 0.5f, VERY_DRUNK = 1.0f"}],"examples":[],"aliases":[],"enums":[],"related":["0x6FB76442469ABD68"],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PED/_SET_PED_DRUNKNESS","markdownUrl":"https://natives.borderlinerp.com/natives/PED/_SET_PED_DRUNKNESS.md","snippets":{"lua":"SetPedDrunkness(ped, enabled, drunknessLevel)","luaInvoke":"Citizen.InvokeNative(0x406CCF555B04FAD3, ped, enabled, drunknessLevel)","js":"SetPedDrunkness(ped, enabled, drunknessLevel);","jsInvoke":"Citizen.invokeNative('0x406CCF555B04FAD3', ped, enabled, drunknessLevel + 0.0000001);","csharp":"Function.Call((Hash)0x406CCF555B04FAD3, ped, enabled, drunknessLevel);","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."]}}