ForceStartMissionIndex
Description
The unorthodox method to start missions or minigames. Arguably, this is the low-level function of ForceStartMission and StartMission in Lua. Even though the mission index list goes up to 497, many entries are non-functional often causing soft locks, crashes, or serving as internal test content.
See: Mission Index
function ForceStartMissionIndex(missionIndex) --[[ ... ]] end
Parameters
missionIndex
: number
- index of a mission.
Return Values
None.
Example
Skips Math 1 - 4 and proceeds directly to Math 5.
if IsButtonBeingPressed(3, 0) then
ForceStartMissionIndex(188)
end