_0xE141F6B40B1E3683
Only used in R* SP Scripts _STAT_ID_SET_*
Hash
0xE141F6B40B1E3683Runtime name
N_0xe141f6b40b1e3683NamespaceSTATS
SideClient
NameHash only
Docs
Since build1207
Signature
void _0xE141F6B40B1E3683(Any* statId, float value);Parameters
| Name | Type | Description |
|---|---|---|
statId | Any* | — |
value | float | — |
Returns void
Description
statId: see STAT_ID_IS_VALID
Only used in R* SP Scripts
_STAT_ID_SET_*
Usage
local statId = N_0xe141f6b40b1e3683(value)
-- always works, by hash
local statId = Citizen.InvokeNative(0xE141F6B40B1E3683, Citizen.PointerValueInt(), value)JavaScript and C#
const statId = N_0xe141f6b40b1e3683(value);
// by hash
const statId = Citizen.invokeNative('0xE141F6B40B1E3683', Citizen.pointerValueInt(), value + 0.0000001);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to 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).InvokeNativewith the hash always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.