The Lab
MISC native

SCRIPT_RACE_GET_PLAYER_SPLIT_TIME

returns BOOL3 paramsbuild 1207

Based on its name and signature, here is our best reading:

Retrieves a player's split time in a script race. Returns true on success.

Signature

C
BOOL SCRIPT_RACE_GET_PLAYER_SPLIT_TIME(Any p0, Any* p1, Any* p2); // 0x769E848C66E3C2BB b1207

Parameters

#NameType
1p0Any
2p1Any* (out pointer)
3p2Any* (out pointer)

Facts

Facts about SCRIPT_RACE_GET_PLAYER_SPLIT_TIME
Name
SCRIPT_RACE_GET_PLAYER_SPLIT_TIME
Hash
0x769E848C66E3C2BB
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, p1, p2 = Citizen.InvokeNative(0x769E848C66E3C2BB, -- SCRIPT_RACE_GET_PLAYER_SPLIT_TIME
  0, -- Any p0
  Citizen.PointerValueInt(), -- Any* p1
  Citizen.PointerValueInt(), -- Any* p2
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, p1, p2] = Citizen.invokeNative("0x769E848C66E3C2BB", // SCRIPT_RACE_GET_PLAYER_SPLIT_TIME
  0, // Any p0
  Citizen.pointerValueInt(), // Any* p1
  Citizen.pointerValueInt(), // Any* p2
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var p1Arg = new OutputArgument();
var p2Arg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x769E848C66E3C2BB, // SCRIPT_RACE_GET_PLAYER_SPLIT_TIME
  0, // Any p0
  p1Arg, // Any* p1
  p2Arg // Any* p2
);
int p1 = p1Arg.GetResult<int>();
int p2 = p2Arg.GetResult<int>();
All MISC natives

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