_SET_PLAYER_CURRENT_ANIMAL_DAMAGE_MODIFIER
Animal Skin Quality Modifier
Hash
0x9EFF3C91DF38304FRuntime name
SetPlayerCurrentAnimalDamageModifierNamespacePED
SideClient
NameCommunity guess
Docs
Since build1311
Signature
Any _SET_PLAYER_CURRENT_ANIMAL_DAMAGE_MODIFIER(Player player, float modifier, int p2, int p3);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
modifier | float | — |
p2 | int | — |
p3 | int | — |
Returns Any
Description
Animal Skin Quality Modifier
Params: p2 = 2, p3 = 3 in R* Scripts
Usage
local retval = SetPlayerCurrentAnimalDamageModifier(player, modifier, p2, p3)
-- always works, by hash
local retval = Citizen.InvokeNative(0x9EFF3C91DF38304F, player, modifier, p2, p3, Citizen.ResultAsInteger())JavaScript and C#
const retval = SetPlayerCurrentAnimalDamageModifier(player, modifier, p2, p3);
// by hash
const retval = Citizen.invokeNative('0x9EFF3C91DF38304F', player, modifier + 0.0000001, p2, p3, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x9EFF3C91DF38304F, player, modifier, p2, p3);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to 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
InvokeNativewith the hash — it always works.
See also
_GET_PLAYER_CURRENT_ANIMAL_DAMAGE_MODIFIERReturns animal skin quality modifier
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.