{"hash":"0x9EFF3C91DF38304F","ns":"PED","name":"_SET_PLAYER_CURRENT_ANIMAL_DAMAGE_MODIFIER","slug":"_SET_PLAYER_CURRENT_ANIMAL_DAMAGE_MODIFIER","official":false,"named":true,"luaName":"SetPlayerCurrentAnimalDamageModifier","game":"rdr3","apiset":"client","returnType":"Any","params":[{"name":"player","type":"Player"},{"name":"modifier","type":"float"},{"name":"p2","type":"int"},{"name":"p3","type":"int"}],"summary":"Animal Skin Quality Modifier","descriptions":[{"source":"alloc8or","format":"text","body":"Animal Skin Quality Modifier\nParams: p2 = 2, p3 = 3 in R* Scripts"}],"examples":[],"aliases":[],"enums":[],"related":["0xEE2D5C819A65BF26"],"build":"1311","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PED/_SET_PLAYER_CURRENT_ANIMAL_DAMAGE_MODIFIER","markdownUrl":"https://natives.borderlinerp.com/natives/PED/_SET_PLAYER_CURRENT_ANIMAL_DAMAGE_MODIFIER.md","snippets":{"lua":"local retval = SetPlayerCurrentAnimalDamageModifier(player, modifier, p2, p3)","luaInvoke":"local retval = Citizen.InvokeNative(0x9EFF3C91DF38304F, player, modifier, p2, p3, Citizen.ResultAsInteger())","js":"const retval = SetPlayerCurrentAnimalDamageModifier(player, modifier, p2, p3);","jsInvoke":"const retval = Citizen.invokeNative('0x9EFF3C91DF38304F', player, modifier + 0.0000001, p2, p3, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x9EFF3C91DF38304F, player, modifier, p2, p3);","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."]}}