SCRIPT_RACE_INIT
Initializes the script race system with numCheckpoints checkpoints, numLaps laps and numPlayers players.
Signature
void SCRIPT_RACE_INIT(int numCheckpoints, int numLaps, int numPlayers, Any p3); // 0x8AE059F47158417E b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | numCheckpoints | int |
| 2 | numLaps | int |
| 3 | numPlayers | int |
| 4 | p3 | Any |
Facts
| Name | SCRIPT_RACE_INIT |
|---|---|
| Hash | 0x8AE059F47158417E |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x8AE059F47158417E, -- SCRIPT_RACE_INIT
0, -- int numCheckpoints
0, -- int numLaps
0, -- int numPlayers
0 -- Any p3
)Citizen.invokeNative("0x8AE059F47158417E", // SCRIPT_RACE_INIT
0, // int numCheckpoints
0, // int numLaps
0, // int numPlayers
0 // Any p3
);Function.Call((Hash)0x8AE059F47158417E, // SCRIPT_RACE_INIT
0, // int numCheckpoints
0, // int numLaps
0, // int numPlayers
0 // Any p3
);Related MISC natives
- SCRIPT_RACE_GET_PLAYER_SPLIT_TIME
- SCRIPT_RACE_PLAYER_HIT_CHECKPOINT
- SCRIPT_RACE_SHUTDOWN
- SET_THIS_SCRIPT_CAN_REMOVE_BLIPS_CREATED_BY_ANY_SCRIPT
- SET_THIS_SCRIPT_CAN_BE_PAUSED
- COPY_SCRIPT_STRUCT
- GAME_FRAMEWORK_MANAGER_INIT
- GET_SCRIPT_TIME_WITHIN_FRAME_IN_MICROSECONDS
- NETWORK_SET_SCRIPT_IS_SAFE_FOR_NETWORK_GAME
- RESET_SCRIPT_TIME_WITHIN_FRAME
- SAVE_END_USER_BENCHMARK
- SET_BIT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.