SET_ANIMAL_TUNING_FLOAT_PARAM
Hash
0xCBDA22C87977244FRuntime name
SetAnimalTuningFloatParamNamespaceFLOCK
SideClient
NameOfficial
Docs
Since build1207
Signature
void SET_ANIMAL_TUNING_FLOAT_PARAM(Ped animal, int index, float value);Parameters
| Name | Type | Description |
|---|---|---|
animal | Ped | — |
index | int | — |
value | float | — |
Returns void
Usage
SetAnimalTuningFloatParam(animal, index, value)
-- always works, by hash
Citizen.InvokeNative(0xCBDA22C87977244F, animal, index, value)JavaScript and C#
SetAnimalTuningFloatParam(animal, index, value);
// by hash
Citizen.invokeNative('0xCBDA22C87977244F', animal, index, value + 0.0000001);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Enums and flags
- eAnimalTuningFloats 168 values
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.