_0x302E71C1D9EE75B9
Hash
0x302E71C1D9EE75B9Runtime name
N_0x302e71c1d9ee75b9NamespaceSTATS
SideClient
NameHash only
Docs
Since build1207
Signature
BOOL _0x302E71C1D9EE75B9(Any* statId, Hash p1, int* p2);Parameters
| Name | Type | Description |
|---|---|---|
statId | Any* | — |
p1 | Hash | — |
p2 | int* | — |
Returns BOOL
Description
statId: see STAT_ID_IS_VALID
Usage
local retval, statId, p2 = N_0x302e71c1d9ee75b9(p1)
-- always works, by hash
local retval, statId, p2 = Citizen.InvokeNative(0x302E71C1D9EE75B9, Citizen.PointerValueInt(), p1, Citizen.PointerValueInt(), Citizen.ReturnResultAnyway())JavaScript and C#
const [retval, statId, p2] = N_0x302e71c1d9ee75b9(p1);
// by hash
const [retval, statId, p2] = Citizen.invokeNative('0x302E71C1D9EE75B9', Citizen.pointerValueInt(), p1, Citizen.pointerValueInt(), Citizen.returnResultAnyway());var statId = new OutputArgument();
var p2 = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x302E71C1D9EE75B9, statId, p1, p2);
// statId.GetResult<int>()
// p2.GetResult<int>()- 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`. - 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_0x302e71c1d9ee75b9(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.