{"hash":"0x8ACC0506743A8A5C","ns":"PED","name":"_SET_PED_COMBAT_STYLE","slug":"_SET_PED_COMBAT_STYLE","official":false,"named":true,"luaName":"SetPedCombatStyle","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"ped","type":"Ped"},{"name":"combatStyleHash","type":"Hash"},{"name":"p2","type":"int"},{"name":"duration","type":"float"}],"summary":"duration in seconds, -1.0 = forever","descriptions":[{"source":"alloc8or","format":"text","body":"https://github.com/femga/rdr3_discoveries/tree/master/AI/COMBAT_STYLES\nParams: p2 is usually 1, sometimes 0 or 2\nduration in seconds, -1.0 = forever"}],"examples":[],"aliases":[],"enums":[],"related":["0x78815FC52832B690"],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PED/_SET_PED_COMBAT_STYLE","markdownUrl":"https://natives.borderlinerp.com/natives/PED/_SET_PED_COMBAT_STYLE.md","snippets":{"lua":"SetPedCombatStyle(ped, combatStyleHash, p2, duration)","luaInvoke":"Citizen.InvokeNative(0x8ACC0506743A8A5C, ped, combatStyleHash, p2, duration)","js":"SetPedCombatStyle(ped, combatStyleHash, p2, duration);","jsInvoke":"Citizen.invokeNative('0x8ACC0506743A8A5C', ped, combatStyleHash, p2, duration + 0.0000001);","csharp":"Function.Call((Hash)0x8ACC0506743A8A5C, ped, combatStyleHash, p2, duration);","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"name\")` or a backtick literal like `` `name` ``.","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."]}}