{"hash":"0xFF41B4B141ED981C","ns":"PED","name":"SET_COMBAT_FLOAT","slug":"SET_COMBAT_FLOAT","official":true,"named":true,"luaName":"SetCombatFloat","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"ped","type":"Ped"},{"name":"combatType","type":"int"},{"name":"newValue","type":"float"}],"summary":"combatType can be between 0-14.","descriptions":[{"source":"alloc8or","format":"text","body":"combatType: https://github.com/femga/rdr3_discoveries/tree/master/AI/COMBAT_FLOATS \nhttps://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eCombatAttributeFloats"},{"source":"vorp","format":"text","body":"combatType can be between 0-14. See GET_COMBAT_FLOAT below for a list of possible parameters.\nhttps://github.com/femga/rdr3_discoveries/tree/master/AI/COMBAT_FLOATS \nhttps://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eCombatAttributeFloats"}],"examples":[],"aliases":[],"enums":["eCombatAttributeFloats"],"related":["0x52DFF8A10508090A"],"build":"1207","gtaHash":"0xFF41B4B141ED981C","gtaJhash":"0xD8B7637C","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PED/SET_COMBAT_FLOAT","markdownUrl":"https://natives.borderlinerp.com/natives/PED/SET_COMBAT_FLOAT.md","snippets":{"lua":"SetCombatFloat(ped, combatType, newValue)","luaInvoke":"Citizen.InvokeNative(0xFF41B4B141ED981C, ped, combatType, newValue)","js":"SetCombatFloat(ped, combatType, newValue);","jsInvoke":"Citizen.invokeNative('0xFF41B4B141ED981C', ped, combatType, newValue + 0.0000001);","csharp":"Function.Call((Hash)0xFF41B4B141ED981C, ped, combatType, newValue);","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."]}}