{"hash":"0x93F499CAE53FCD05","ns":"PLAYER","name":"_SET_PLAYER_DEFENSE_TYPE_MODIFIER","slug":"_SET_PLAYER_DEFENSE_TYPE_MODIFIER","official":false,"named":true,"luaName":"SetPlayerDefenseTypeModifier","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"player","type":"Player"},{"name":"type","type":"int"},{"name":"defenseModifier","type":"float"}],"summary":"bullet damage modifier: type = 4 explosive damage Defense mod: type = 7 fire damage Defense mod: type = 8, 15","descriptions":[{"source":"alloc8or","format":"text","body":"bullet damage modifier: type = 4\nexplosive damage Defense mod: type = 7\nfire damage Defense mod: type = 8, 15"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PLAYER/_SET_PLAYER_DEFENSE_TYPE_MODIFIER","markdownUrl":"https://natives.borderlinerp.com/natives/PLAYER/_SET_PLAYER_DEFENSE_TYPE_MODIFIER.md","snippets":{"lua":"SetPlayerDefenseTypeModifier(player, type, defenseModifier)","luaInvoke":"Citizen.InvokeNative(0x93F499CAE53FCD05, player, type, defenseModifier)","js":"SetPlayerDefenseTypeModifier(player, type, defenseModifier);","jsInvoke":"Citizen.invokeNative('0x93F499CAE53FCD05', player, type, defenseModifier + 0.0000001);","csharp":"Function.Call((Hash)0x93F499CAE53FCD05, player, type, defenseModifier);","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."]}}