Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function main()
- -- Setup cutscenes:
- SETUP_Cutscenes()
- -- Load the game:
- while not SystemIsReady() or AreaIsLoading() do
- Wait(0)
- end
- -- Wait for player:
- local s = 1
- while true do
- TextPrintString("Start at >"..gCutscenes[s][1].."<\nPress ~ddown~ to start.",0,1)
- Wait(0)
- if PedMePlaying(gPlayer,"Default_KEY") then
- if IsButtonBeingPressed(0,0) then
- s = s - 1
- if s < 1 then
- s = table.getn(gCutscenes)
- end
- elseif IsButtonBeingPressed(1,0) then
- s = s + 1
- if s > table.getn(gCutscenes) then
- s = 1
- end
- elseif IsButtonBeingPressed(3,0) then
- break
- end
- end
- end
- -- Play all cutscenes:
- for i = s,table.getn(gCutscenes) do
- PlayCutsceneWithLoad(unpack(gCutscenes[i]))
- end
- Wait(500)
- -- Return to normal:
- CameraFade(500,1)
- while true do
- Wait(0)
- end
- end
- function SETUP_Cutscenes()
- gCutscenes = {
- {"1-02B",true,false,true},
- {"1-02D",true,false},
- {"1-02E",true,true},
- {"1-03",true,true,true},
- {"1-04",true},
- {"1-05",true},
- {"1-06",true},
- {"1-06B",true},
- {"1-07",true},
- {"1-08",true},
- {"1-09",true},
- {"1-1-1",true,true,true},
- {"1-1-2",true,true},
- {"1-10",true},
- {"1-11",true,false},
- {"1-B",true},
- {"1-BB",true},
- {"1-BC",true},
- {"1-G1",true,true},
- {"1-S01",true},
- {"2-0",true,true},
- {"2-01",true,true,true},
- {"2-02",true,false,false,false},
- {"2-03",true},
- {"2-03b",true},
- {"2-04",true},
- {"2-05",true,true},
- {"2-06",true},
- {"2-07",true,true,true},
- {"2-08",true,true},
- {"2-09",true},
- {"2-09B",true},
- {"2-B",true},
- {"2-BB",true},
- {"2-G2",true},
- {"2-S02",true,true},
- {"2-S04",true},
- {"2-S05",true,true},
- {"2-S05B",true,true},
- {"2-S05C",false,false,true,true},
- {"2-S06",true},
- {"2-S07",true,true,false},
- {"3-0",true,true},
- {"3-01",true},
- {"3-01AA",true},
- {"3-01AB",true},
- {"3-01BA",true},
- {"3-01CA",true},
- {"3-01CB",true},
- {"3-01DA",true},
- {"3-01DB",true},
- {"3-01DC",true},
- {"3-02",true},
- {"3-03",true},
- {"3-04",true},
- {"3-04B",true},
- {"3-05",true},
- {"3-06",true,true},
- {"3-B",true,true},
- {"3-BB",true,true},
- {"3-BD",true},
- {"3-G3",true},
- {"3-R05A",true},
- {"3-R05B",true},
- {"3-R07",true},
- {"3-S03",true},
- {"3-S08",true},
- {"3-S10",true},
- {"3-S11",true},
- {"3-S11C",true,true},
- {"4-0",true,true},
- {"4-01",true},
- {"4-02",true,true,true},
- {"4-03",true,true,true},
- {"4-04",true},
- {"4-05",true},
- {"4-06",true},
- {"4-B1",true,true},
- {"4-B1D",true,false},
- {"4-B2",true},
- {"4-B2B",true},
- {"4-G4",true,true},
- {"4-S12",true,true},
- {"4-S12B",true,true},
- {"5-0",true,true},
- {"5-01",true},
- {"5-02",true},
- {"5-02B",true,true},
- {"5-03",true,true,true},
- {"5-04",true},
- {"5-05",true,true},
- {"5-05B",true,true,true,true},
- {"5-06",true},
- {"5-09",true,false,false},
- {"5-09B",true,false},
- {"5-BC",true},
- {"5-G5",true},
- {"6-0",true,true},
- {"6-02",true,true},
- {"6-02B",true,true},
- {"6-B",true},
- {"6-BB",true},
- {"6-BB",true,false,true,true},
- {"6-BC",true},
- }
- end
- -- STimeCycle functions:
- F_AttendedClass = function()
- if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
- return
- end
- SetSkippedClass(false)
- PlayerSetPunishmentPoints(0)
- end
- F_MissedClass = function()
- if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
- return
- end
- SetSkippedClass(true)
- StatAddToInt(166)
- end
- F_AttendedCurfew = function()
- if not PedInConversation(gPlayer) and not MissionActive() then
- TextPrintString("You got home in time for curfew", 4)
- end
- end
- F_MissedCurfew = function()
- if not PedInConversation(gPlayer) and not MissionActive() then
- TextPrint("TM_TIRED5", 4, 2)
- end
- end
- F_StartClass = function()
- if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
- return
- end
- F_RingSchoolBell()
- local l_6_0 = PlayerGetPunishmentPoints() + GetSkippingPunishment()
- end
- F_EndClass = function()
- if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
- return
- end
- F_RingSchoolBell()
- end
- F_StartMorning = function()
- F_UpdateTimeCycle()
- end
- F_EndMorning = function()
- F_UpdateTimeCycle()
- end
- F_StartLunch = function()
- if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
- F_UpdateTimeCycle()
- return
- end
- F_UpdateTimeCycle()
- end
- F_EndLunch = function()
- F_UpdateTimeCycle()
- end
- F_StartAfternoon = function()
- F_UpdateTimeCycle()
- end
- F_EndAfternoon = function()
- F_UpdateTimeCycle()
- end
- F_StartEvening = function()
- F_UpdateTimeCycle()
- end
- F_EndEvening = function()
- F_UpdateTimeCycle()
- end
- F_StartCurfew_SlightlyTired = function()
- F_UpdateTimeCycle()
- end
- F_StartCurfew_Tired = function()
- F_UpdateTimeCycle()
- end
- F_StartCurfew_MoreTired = function()
- F_UpdateTimeCycle()
- end
- F_StartCurfew_TooTired = function()
- F_UpdateTimeCycle()
- end
- F_EndCurfew_TooTired = function()
- F_UpdateTimeCycle()
- end
- F_EndTired = function()
- F_UpdateTimeCycle()
- end
- F_Nothing = function()
- end
- F_ClassWarning = function()
- if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
- return
- end
- local l_23_0 = math.random(1, 2)
- end
- F_UpdateTimeCycle = function()
- if not IsMissionCompleated("1_B") then
- local l_24_0 = GetCurrentDay(false)
- if l_24_0 < 0 or l_24_0 > 2 then
- SetCurrentDay(0)
- end
- end
- F_UpdateCurfew()
- end
- F_UpdateCurfew = function()
- local l_25_0 = shared.gCurfewRules
- if not l_25_0 then
- l_25_0 = F_CurfewDefaultRules
- end
- l_25_0()
- end
- F_CurfewDefaultRules = function()
- local l_26_0 = ClockGet()
- if l_26_0 >= 23 or l_26_0 < 7 then
- shared.gCurfew = true
- else
- shared.gCurfew = false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment