Available since Version 1.27.
Checks if the given street race is completed.
Syntax
IsLevelStreetRaceCompleted( level, mission )Arguments
- level (integer): The level to check.
- Between 1 and 7 or the max
Levelsset by the Custom Stats Totals hack, if it is loaded.
- Between 1 and 7 or the max
- mission (integer): The street race to check.
- Between 1 and 3 or the max
StreetRacesset for the level by the Custom Stats Totals hack, if it is loaded.
- Between 1 and 3 or the max
Return Values
- (boolean | nil): If the player has completed the street race or
nilif unavailable.
Examples
local MilhouseRaceCompleted = IsLevelStreetRaceCompleted(1, 1)
if MilhouseRaceCompleted then
-- Do something if Homer has completed Milhouse's race
end