RedM Natives

SET_ANIMAL_TUNING_FLOAT_PARAM

Hash0xCBDA22C87977244F
Runtime nameSetAnimalTuningFloatParam
NamespaceFLOCK
SideClient
NameOfficial
Docs
Since build1207

Signature

void SET_ANIMAL_TUNING_FLOAT_PARAM(Ped animal, int index, float value);

Parameters

NameTypeDescription
animalPed—
indexint—
valuefloat—

Returns void

Usage

Lua
SetAnimalTuningFloatParam(animal, index, value)

-- always works, by hash
Citizen.InvokeNative(0xCBDA22C87977244F, animal, index, value)
JavaScript and C#
JavaScript
SetAnimalTuningFloatParam(animal, index, value);

// by hash
Citizen.invokeNative('0xCBDA22C87977244F', animal, index, value + 0.0000001);
C#
Function.Call((Hash)0xCBDA22C87977244F, animal, index, value);
  • 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.

Enums and flags

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.