The Lab
STATS native

_0x302E71C1D9EE75B9

returns BOOL3 paramsbuild 1207

This STATS native has no community name yet, so it is known by its hash 0x302E71C1D9EE75B9. It takes 3 parameters (statId as Any*, p1 as Hash, p2 as int*) and returns a BOOL.

Signature

C
BOOL _0x302E71C1D9EE75B9(Any* statId, Hash p1, int* p2); // 0x302E71C1D9EE75B9 b1207

Parameters

#NameType
1statIdAny* (out pointer)
2p1Hash
3p2int* (out pointer)

Facts

Facts about _0x302E71C1D9EE75B9
Name
_0x302E71C1D9EE75B9
Hash
0x302E71C1D9EE75B9
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result, statId, p2 = Citizen.InvokeNative(0x302E71C1D9EE75B9, -- _0x302E71C1D9EE75B9
  Citizen.PointerValueInt(), -- Any* statId
  GetHashKey("name"), -- Hash p1
  Citizen.PointerValueInt(), -- int* p2
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, statId, p2] = Citizen.invokeNative("0x302E71C1D9EE75B9", // _0x302E71C1D9EE75B9
  Citizen.pointerValueInt(), // Any* statId
  GetHashKey("name"), // Hash p1
  Citizen.pointerValueInt(), // int* p2
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var statIdArg = new OutputArgument();
var p2Arg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x302E71C1D9EE75B9, // _0x302E71C1D9EE75B9
  statIdArg, // Any* statId
  (uint)API.GetHashKey("name"), // Hash p1
  p2Arg // int* p2
);
int statId = statIdArg.GetResult<int>();
int p2 = p2Arg.GetResult<int>();
All STATS natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.