Native referenceFiveM

SCRIPT_RACE_PLAYER_HIT_CHECKPOINT

0x1BB299305C3E8C13 MISC
FUNCTION SIGNATURE
void SCRIPT_RACE_PLAYER_HIT_CHECKPOINT(Ped ped, int checkpoint, int lap, int time);
Property Value
Native Name SCRIPT_RACE_PLAYER_HIT_CHECKPOINT
Hash 0x1BB299305C3E8C13
Return Type void
Parameters ped (Ped), checkpoint (int), lap (int), time (int)

Description: Records that a player has successfully passed a checkpoint during a scripted race in GTA:Online. This native should be used after initializing the race with SCRIPT_RACE_INIT.

NativeDB Introduced: v323

Parameters

  • ped (Ped) — The index of the Ped who hit the checkpoint.
  • checkpoint (int) — The checkpoint number that the player has passed.
  • lap (int) — The current lap that the player is on.
  • time (int) — The time it took for the player to reach this checkpoint from the start of the race or the last checkpoint.
Back to MISC