Can't force Small Offensives and Go Kart Minigames to be completed with LUA while I can with other missions/classes/etc. It seems like it has to do with the mission ID not being in quotation marks inside the code. This is the function I made for them. Also can't make passing Shop 4 reward player with a Blue BMX.
F_CompleteClassCheat = function()
if not IsMissionCompleated(70) then -- Small Offenses Mission ID
MissionForceCompleted(70,true)
MissionSuccessCountInc(70)
Wait(0)
end
if not IsMissionCompleated("3_R09_N") then
MissionForceCompleted("3_R09_N",true)
MissionSuccessCountInc("3_R09_N")
Wait(0)
end
if IsMissionCompleated("C_Chem_1") and not IsMissionCompleated("C_Chem_2") then
MissionForceCompleted("C_Chem_2",true)
MissionSuccessCountInc("C_Chem_2")
Wait(0)
MissionForceCompleted("C_Chem_3",true)
MissionSuccessCountInc("C_Chem_3")
Wait(0)
MissionForceCompleted("C_Chem_4",true)
MissionSuccessCountInc("C_Chem_4")
Wait(0)
MissionForceCompleted("C_Chem_5",true)
MissionSuccessCountInc("C_Chem_5")
Wait(0)
MissionForceCompleted("C_Chem_5_repeat",true)
MissionSuccessCountInc("C_Chem_5_repeat")
Wait(0)
end
if not IsMissionCompleated("C_English_1") then
MissionForceCompleted("C_English_1",true)
MissionSuccessCountInc("C_English_1")
Wait(0)
MissionForceCompleted("C_English_2",true)
MissionSuccessCountInc("C_English_2")
Wait(0)
MissionForceCompleted("C_English_3",true)
MissionSuccessCountInc("C_English_3")
Wait(0)
MissionForceCompleted("C_English_4",true)
MissionSuccessCountInc("C_English_4")
Wait(0)
MissionForceCompleted("C_English_5",true)
MissionSuccessCountInc("C_English_5")
Wait(0)
end
if IsMissionCompleated("1_02B") and not IsMissionCompleated("C_ART_1") then
MissionForceCompleted("C_ART_1",true)
MissionSuccessCountInc("C_ART_1")
Wait(0)
MissionForceCompleted("C_ART_2",true)
MissionSuccessCountInc("C_ART_2")
Wait(0)
MissionForceCompleted("C_ART_3",true)
MissionSuccessCountInc("C_ART_3")
Wait(0)
MissionForceCompleted("C_ART_4",true)
MissionSuccessCountInc("C_ART_4")
Wait(0)
MissionForceCompleted("C_ART_5",true)
MissionSuccessCountInc("C_ART_5")
Wait(0)
MissionForceCompleted("C_Art_5_repeat",true)
MissionSuccessCountInc("C_Art_5_repeat")
Wait(0)
end
if IsMissionCompleated("Chapt1Trans") and not IsMissionCompleated("C_WRESTLING_1") then
MissionForceCompleted("C_WRESTLING_1",true)
MissionSuccessCountInc("C_WRESTLING_1")
Wait(0)
MissionForceCompleted("C_WRESTLING_2",true)
MissionSuccessCountInc("C_WRESTLING_2")
Wait(0)
MissionForceCompleted("C_WRESTLING_3",true)
MissionSuccessCountInc("C_WRESTLING_3")
Wait(0)
MissionForceCompleted("C_WRESTLING_4",true)
MissionSuccessCountInc("C_WRESTLING_4")
Wait(0)
MissionForceCompleted("C_WRESTLING_5",true)
MissionSuccessCountInc("C_WRESTLING_5")
Wait(0)
end
if IsMissionCompleated("Chapt1Trans") and not IsMissionCompleated("C_Shop_1") then
MissionForceCompleted("C_Shop_1",true)
MissionSuccessCountInc("C_Shop_1")
Wait(0)
MissionForceCompleted("C_Shop_2",true)
MissionSuccessCountInc("C_Shop_2")
Wait(0)
MissionForceCompleted("C_Shop_3",true)
MissionSuccessCountInc("C_Shop_3")
Wait(0)
MissionForceCompleted("C_Shop_4",true)
MissionSuccessCountInc("C_Shop_4") -- Class that should reward Blue BMX
Wait(0)
end
end
main = function()
Wait(500)
repeat
if IsButtonBeingPressed(0,0) then
F_CompleteClassCheat()
PedSetWeapon(gplayer, 418)
Wait(1000)
end
Wait(0)
until not Alive
end