SET_SPECIES_TUNING_FLOAT_PARAM
Hash
0x963240B6C252BA49Runtime name
SetSpeciesTuningFloatParamNamespaceFLOCK
SideClient
NameOfficial
Docs
Since build1207
Signature
void SET_SPECIES_TUNING_FLOAT_PARAM(Hash p0, int p1, int p2, float p3);Parameters
| Name | Type | Description |
|---|---|---|
p0 | Hash | — |
p1 | int | — |
p2 | int | — |
p3 | float | — |
Returns void
Usage
SetSpeciesTuningFloatParam(p0, p1, p2, p3)
-- always works, by hash
Citizen.InvokeNative(0x963240B6C252BA49, p0, p1, p2, p3)JavaScript and C#
SetSpeciesTuningFloatParam(p0, p1, p2, p3);
// by hash
Citizen.invokeNative('0x963240B6C252BA49', p0, p1, p2, p3 + 0.0000001);Function.Call((Hash)0x963240B6C252BA49, p0, p1, p2, p3);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`. - 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.
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.