{"hash":"0x914071FF93AF2692","ns":"PLAYER","name":"_SET_AI_PLAYER_DEFENSE_MODIFIER_AGAINST_AI","slug":"_SET_AI_PLAYER_DEFENSE_MODIFIER_AGAINST_AI","official":false,"named":true,"luaName":"SetAiPlayerDefenseModifierAgainstAi","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"player","type":"Player"},{"name":"modifier","type":"float"}],"summary":"Sets Player's Defense against AI modifier","descriptions":[{"source":"alloc8or","format":"text","body":"Sets Player's Defense against AI modifier"}],"examples":[],"aliases":[],"enums":[],"related":["0x2E78D822208E740A"],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PLAYER/_SET_AI_PLAYER_DEFENSE_MODIFIER_AGAINST_AI","markdownUrl":"https://natives.borderlinerp.com/natives/PLAYER/_SET_AI_PLAYER_DEFENSE_MODIFIER_AGAINST_AI.md","snippets":{"lua":"SetAiPlayerDefenseModifierAgainstAi(player, modifier)","luaInvoke":"Citizen.InvokeNative(0x914071FF93AF2692, player, modifier)","js":"SetAiPlayerDefenseModifierAgainstAi(player, modifier);","jsInvoke":"Citizen.invokeNative('0x914071FF93AF2692', player, modifier + 0.0000001);","csharp":"Function.Call((Hash)0x914071FF93AF2692, player, modifier);","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."]}}