RedM Natives

_0xE141F6B40B1E3683

Only used in R* SP Scripts _STAT_ID_SET_*

Hash0xE141F6B40B1E3683
Runtime nameN_0xe141f6b40b1e3683
NamespaceSTATS
SideClient
NameHash only
Docs
Since build1207

Signature

void _0xE141F6B40B1E3683(Any* statId, float value);

Parameters

NameTypeDescription
statIdAny*—
valuefloat—

Returns void

Description

statId: see STAT_ID_IS_VALID
Only used in R* SP Scripts
_STAT_ID_SET_*

Usage

Lua
local statId = N_0xe141f6b40b1e3683(value)

-- always works, by hash
local statId = Citizen.InvokeNative(0xE141F6B40B1E3683, Citizen.PointerValueInt(), value)
JavaScript and C#
JavaScript
const statId = N_0xe141f6b40b1e3683(value);

// by hash
const statId = Citizen.invokeNative('0xE141F6B40B1E3683', Citizen.pointerValueInt(), value + 0.0000001);
C#
var statId = new OutputArgument();
Function.Call((Hash)0xE141F6B40B1E3683, statId, value);
// statId.GetResult<int>()
  • 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.
  • Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
  • Any* arguments are often structs. Build them with a DataView buffer and pass it with :Buffer() — see the examples and notes below.
  • This native has no known name, so the runtime exposes it only as N_0xe141f6b40b1e3683 (if present in the client snapshot). InvokeNative with the hash always works.

Sources

alloc8or RDR3 NativeDB

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