RedM Natives

SET_SPECIES_TUNING_FLOAT_PARAM

Hash0x963240B6C252BA49
Runtime nameSetSpeciesTuningFloatParam
NamespaceFLOCK
SideClient
NameOfficial
Docs
Since build1207

Signature

void SET_SPECIES_TUNING_FLOAT_PARAM(Hash p0, int p1, int p2, float p3);

Parameters

NameTypeDescription
p0Hash—
p1int—
p2int—
p3float—

Returns void

Usage

Lua
SetSpeciesTuningFloatParam(p0, p1, p2, p3)

-- always works, by hash
Citizen.InvokeNative(0x963240B6C252BA49, p0, p1, p2, p3)
JavaScript and C#
JavaScript
SetSpeciesTuningFloatParam(p0, p1, p2, p3);

// by hash
Citizen.invokeNative('0x963240B6C252BA49', p0, p1, p2, p3 + 0.0000001);
C#
Function.Call((Hash)0x963240B6C252BA49, p0, p1, p2, p3);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("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. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

See also

Sources

alloc8or RDR3 NativeDB

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