Advertisement
RanggaBS

PopClass&UnlckdIntrr

Oct 5th, 2021
562
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 30.59 KB | None | 0 0
  1. Coord = { -- Coordinate = {areaCode, X, Y, Z}, Room = {X1, Y1, X2, Y2}
  2.     Chemistry = {
  3.         Room = {-590.6, 316.3, -599.2, 326.9},
  4.         In = {4, -599.174, 326.887, 34.2},
  5.         Out = {2, -606.42, -293.3, 0},
  6.         InDoor = {4, -599.16, 329, 34.2},
  7.         OutDoor = {2, -604, -290.8, 0}
  8.     }, Biology = {
  9.         Room = {-701.63, 313.85, -710.6, 325},
  10.         In = {6, -710.42, 312.4, 33.38},
  11.         Out = {2, -651.5, -293.5, 5.5},
  12.         InDoor = {6, -712.9, 312.3, 33.38}
  13.     }, English = {
  14.         Area = {-554.7, 310, -572.3, 331.5},
  15.         Room = {-556.315, 315.3, -564, 329},
  16.         In = {15, -564, 316.5, -1.9},
  17.         Out = {2, -651.7, -293.33, 0},
  18.         InDoor = {15, -566, 316.6, -1.8},
  19.         OutDoor = {2, -653.89, -290.6, 0}
  20.     }, Art = {
  21.         Room = {-528.5, 376.5, -536, 395},
  22.         In = {17, -537, 376, 14},
  23.         Out = {2, -670.7, -292.5, 5.5}
  24.     }, Music = {
  25.         Area = {-529.6, 310, -547, 331.5},
  26.         Room = {-532.37, 316.45, -538.9, 329.55},
  27.         In = {15, -539.38, 316.6, -1.945},
  28.         Out = {2, -666.45, -303.1, 5.5},
  29.         InDoor = {15, -541.38, 316.64, -1.942}
  30.     }, Math = {
  31.         In = {15, -564, 316.5, -1.9},
  32.         Out = {2, -599.6, -297.26, 5.5},
  33.         OutDoor = {2, -601.84, -299.83, 5.5}
  34.     }, Geography = {
  35.         Out = {2, -611.3, -322, 0}
  36.     }, PrincipalOffice = {
  37.         In = {5, -701.2, 216.6, 31.55},
  38.         Out = {2, -630, -281, 6}
  39.     }, Junkyard = {
  40.         In = {43, -583, -621, 5},
  41.         Out = {0, 549, -491, 5}
  42.     }, Observatory = {
  43.         In = {40, -696.4, 67.37, 20.25},
  44.         Out = {0, 47.7, -134, 2.99}
  45.     }, HarringtonHouse = {
  46.         InDoor = {32, -572.9, 134, 46.15},
  47.         Room1_1 = {-561.7, 138.5, -570.67, 128.3},
  48.         Room1_2 = {-533, 136.4, -557.3, 128.9},
  49.         Room2_1 = {-521.77, 145.54, -545.7, 141.85},
  50.         Room2_2 = {-521.8, 148.64, -530, 120.5},
  51.         Room2_3 = {-504, 117, -526.1, 112.8},
  52.         Room3_1 = {-504.55, 136.3, -507.88, 112.95},
  53.         Room3_2 = {-512.25, 145.3, -515.76, 121.14},
  54.         Room3_3 = {-518.5, 142.5, -541.88, 125},
  55.         Room3_4 = {-545, 142.7, -547.4, 124.2},
  56.         Door1 = {32, -545, 138.6, 46.15},
  57.         Door2 = {32, -534.8, 125.7, 46.15},
  58.         Door3 = {32, -531.86, 123.65, 50.72}
  59.     }, Autoshop = {
  60.         InDoor = {18, -430.5, 364.9, 80.845},
  61.         Room = {-427.94, 364.8, -416.4, 380}
  62.     }, Warehouse = {
  63.         InDoorF = {54, -677.5, -169, 0.05},
  64.         InDoorB = {54, -572.9, -160.5, 10.516},
  65.         FA1 = {-670, -149, -599.5, -171.8},
  66.         FA2 = {-591.46, -143.24, -587.31, -171.46},
  67.         FA3 = {-583.2, -151.1, -575.4, -172.3}
  68.     }
  69. }
  70.  
  71. function PopulatedClassrooms_mod()
  72.     PopulatedClassrooms_setup()
  73.     CreateThread("PopulatedClassrooms_main")
  74. end
  75.  
  76. function PopulatedClassrooms_setup()
  77.     Students, Books = {
  78.         1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
  79.         11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
  80.         21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
  81.         31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
  82.         66, 67, 68, 69, 70, 71, 72, 73, 74, 75,
  83.         85, 88, 90, 92, 93, 94, 95, 96, --[[98,]] 99,
  84.         102, 109, 110, 111, 112, 117, 118, 119, 121, 122,
  85.         130, 133, 134, 137, 138, 139, 142, 145, 146, 147,
  86.         155, 159, 160, 161, 162, 163, 164, 165, 166, 167,
  87.         168, 169, 170, 171, 172, 173, 174, 175, 176, 177,
  88.         178, 179, 180, 181, 182, 186, 200, 201, 202, 203,
  89.         204, 205, 206, 207, 208, 209, 210, 211, 212, 213,
  90.         214, 215, 216, 217, 218, 224, 225, 226, 227, 228,
  91.         230, 231, 232, 235, 239, 240, 241, 242, 243, 244,
  92.         245, 246, 247, 255, 256, 257, 258
  93.     }, {405, 413, 414, 415, 416}
  94.     DATLoad("3_B.DAT", 2)
  95.     DATLoad("3_B_BIKE_STUFF.DAT", 2)
  96. end
  97.  
  98. function PopulatedClassrooms_main()
  99.     while true do
  100.         Wait(0)
  101.         Hour, Minute = ClockGet()
  102.         -- Chemistry class
  103.         if AreaGetVisible() == 4 then
  104.             x, y, z = Coord.Chemistry.InDoor[2], Coord.Chemistry.InDoor[3], Coord.Chemistry.InDoor[4]
  105.             x1, y1, x2, y2 = Coord.Chemistry.Room[1], Coord.Chemistry.Room[2], Coord.Chemistry.Room[3], Coord.Chemistry.Room[4]
  106.             if MorningTime() or LunchTime() then
  107.                 ChanceSpawnPedAndChanceToBringABookAndMoveHim(350, 40, math.random(x2, x1), math.random(y1, y2), Coord.Chemistry.InDoor[4])
  108.             elseif ClassTime() then
  109.                 ChanceSpawnPedAndChanceToBringABookAndMoveHim(250, 60, math.random(x2, x1), math.random(y1, y2), Coord.Chemistry.InDoor[4])
  110.             elseif  NightTime() then
  111.                 CheckPedAtNight()
  112.             end
  113.         -- Biology class
  114.         elseif AreaGetVisible() == 6 then
  115.             x, y, z = Coord.Biology.In[2], Coord.Biology.In[3], Coord.Biology.In[4]
  116.             x1, y1, x2, y2 = Coord.Biology.Room[1], Coord.Biology.Room[2], Coord.Biology.Room[3], Coord.Biology.Room[4]
  117.             if MorningTime() or LunchTime() then
  118.                 ChanceSpawnPedAndChanceToBringABookAndMoveHim(350, 40, math.random(x2, x1), math.random(y1, y2), Coord.Biology.In[4])
  119.             elseif ClassTime() then
  120.                 ChanceSpawnPedAndChanceToBringABookAndMoveHim(250, 60, math.random(x2, x1), math.random(y1, y2), Coord.Biology.In[4])
  121.             elseif NightTime() then
  122.                 CheckPedAtNight()
  123.             end
  124.         elseif AreaGetVisible() == 15 then
  125.             -- English, Math, and Geography class
  126.             if PedInRectangle(gPlayer, Coord.English.Area[1], Coord.English.Area[2], Coord.English.Area[3], Coord.English.Area[4]) then
  127.                 x, y, z = Coord.English.InDoor[2], Coord.English.InDoor[3], Coord.English.InDoor[4]
  128.                 x1, y1, x2, y2 = Coord.English.Room[1], Coord.English.Room[2], Coord.English.Room[3], Coord.English.Room[4]
  129.                 if MorningTime() or LunchTime() then
  130.                     ChanceSpawnPedAndChanceToBringABookAndMoveHim(350, 40, math.random(x2, x1), math.random(y1, y2), Coord.English.In[4])
  131.                 elseif ClassTime() then
  132.                     ChanceSpawnPedAndChanceToBringABookAndMoveHim(250, 60, math.random(x2, x1), math.random(y1, y2), Coord.English.In[4])
  133.                 elseif NightTime() then
  134.                     CheckPedAtNight()
  135.                 end
  136.             -- Music class
  137.             elseif PedInRectangle(gPlayer, Coord.Music.Area[1], Coord.Music.Area[2], Coord.Music.Area[3], Coord.Music.Area[4]) then
  138.                 x, y, z = Coord.Music.InDoor[2], Coord.Music.InDoor[3], Coord.Music.InDoor[4]
  139.                 x1, y1, x2, y2 = Coord.Music.Room[1], Coord.Music.Room[2], Coord.Music.Room[3], Coord.Music.Room[4]
  140.                 if MorningTime() or LunchTime() then
  141.                     ChanceSpawnPedAndChanceToBringABookAndMoveHim(350, 40, math.random(x2, x1), math.random(y1, y2), Coord.Music.InDoor[4])
  142.                 elseif ClassTime() then
  143.                     ChanceSpawnPedAndChanceToBringABookAndMoveHim(250, 60, math.random(x2, x1), math.random(y1, y2), Coord.Music.InDoor[4])
  144.                 elseif NightTime() then
  145.                     CheckPedAtNight()
  146.                 end
  147.             end
  148.         -- Art class
  149.         elseif AreaGetVisible() == 17 then
  150.             x, y, z = Coord.Art.In[2], Coord.Art.In[3], Coord.Art.In[4]
  151.             x1, y1, x2, y2 = Coord.Art.Room[1], Coord.Art.Room[2], Coord.Art.Room[3], Coord.Art.Room[4]
  152.             if MorningTime() or LunchTime() then
  153.                 ChanceSpawnPedAndChanceToBringABookAndMoveHim(250, 40, math.random(x2, x1), math.random(y1, y2), Coord.Art.In[4])
  154.             elseif ClassTime() then
  155.                 ChanceSpawnPedAndChanceToBringABookAndMoveHim(150, 60, math.random(x2, x1), math.random(y1, y2), Coord.Art.In[4])
  156.             elseif NightTime() then
  157.                 CheckPedAtNight()
  158.             end
  159.  
  160.         -- Autoshop
  161.         elseif AreaGetVisible() == 18 then
  162.             greasers, summonGreaser = {
  163.                 27, 173, 203,
  164.                 24,
  165.                 28,
  166.                 21, 202,
  167.                 22, 200,
  168.                 29, 201,
  169.                 23, 217,
  170.                 25, 96
  171.             }, function(xm, ym, zm)
  172.                 greaser = PedCreateXYZ(greasers[math.random(table.getn(greasers))], x, y, z)
  173.                 PedMakeAmbient(greaser)
  174.                 PedMoveToXYZ(greaser, 0, xm, ym, zm)
  175.             end
  176.             x, y, z = Coord.Autoshop.InDoor[2], Coord.Autoshop.InDoor[3], Coord.Autoshop.InDoor[4]
  177.             x1, y1, x2, y2 = Coord.Autoshop.Room[1], Coord.Autoshop.Room[2], Coord.Autoshop.Room[3], Coord.Autoshop.Room[4]
  178.             if MorningTime() or LunchTime() then
  179.                 if math.random(400) <= 2 then
  180.                     summonGreaser(math.random(x1, x2), math.random(y1, y2), Coord.Autoshop.InDoor[4])
  181.                 end
  182.             elseif ClassTime() then
  183.                 if math.random(300) >= 297 then
  184.                     summonGreaser(math.random(x1, x2), math.random(y1, y2), Coord.Autoshop.InDoor[4])
  185.                 end
  186.             elseif NightTime() then
  187.                 CheckPedAtNight()
  188.             end
  189.  
  190.         -- Harrington House
  191.         elseif AreaGetVisible() == 32 then
  192.             if not MissionActiveSpecific("2_08") and not MissionActiveSpecific("6_03") then
  193.                 preps, summonPrep = {
  194.                     30, 214,
  195.                     31, 177, 213,
  196.                     34, 118, 179, 212, 244, 245,
  197.                     40, 119, 163, 211, 246, 247,
  198.                     35, 36, 178, 239, 240,
  199.                     32, 117, 241, 242,
  200.                     33, 133, 172, 243,
  201.                     37, 218,
  202.                     38, 94, 167, 175, 182
  203.                 }, function(xm, ym, zm)
  204.                     prep = PedCreateXYZ(preps[math.random(table.getn(preps))], x, y, z)
  205.                     PedMakeAmbient(prep)
  206.                     PedMoveToXYZ(prep, 0, xm, ym, zm)
  207.                 end
  208.                 if Hour >= 7 and Hour < 19 then
  209.                     local ChooseHHSpawn, ChooseHHRoom, ChooseHHFloor = math.random(4), math.random(9), math.random(3)
  210.                     if ChooseHHSpawn == 1 then
  211.                         x, y, z = Coord.HarringtonHouse.InDoor[2], Coord.HarringtonHouse.InDoor[3], Coord.HarringtonHouse.InDoor[4]
  212.                     elseif ChooseHHSpawn == 2 then
  213.                         x, y, z = Coord.HarringtonHouse.Door1[2], Coord.HarringtonHouse.Door1[3], Coord.HarringtonHouse.Door1[4]
  214.                     elseif ChooseHHSpawn == 3 then
  215.                         x, y, z = Coord.HarringtonHouse.Door2[2], Coord.HarringtonHouse.Door2[3], Coord.HarringtonHouse.Door2[4]
  216.                     elseif ChooseHHSpawn == 4 then
  217.                         x, y, z = Coord.HarringtonHouse.Door3[2], Coord.HarringtonHouse.Door3[3], Coord.HarringtonHouse.Door3[4]
  218.                     end
  219.                     if ChooseHHFloor == 1 and ChooseHHRoom == 1 then
  220.                         Z = 46.15
  221.                         x1, y1, x2, y2 = Coord.HarringtonHouse.Room1_1[1], Coord.HarringtonHouse.Room1_1[2], Coord.HarringtonHouse.Room1_1[3], Coord.HarringtonHouse.Room1_1[4]
  222.                     elseif ChooseHHFloor == 1 and ChooseHHRoom == 2 then
  223.                         Z = 46.15
  224.                         x1, y1, x2, y2 = Coord.HarringtonHouse.Room1_2[1], Coord.HarringtonHouse.Room1_2[2], Coord.HarringtonHouse.Room1_2[3], Coord.HarringtonHouse.Room1_2[4]
  225.                     elseif ChooseHHFloor == 2 and ChooseHHRoom == 1 then
  226.                         Z = 50.72
  227.                         x1, y1, x2, y2 = Coord.HarringtonHouse.Room2_1[1], Coord.HarringtonHouse.Room2_1[2], Coord.HarringtonHouse.Room2_1[3], Coord.HarringtonHouse.Room2_1[4]
  228.                     elseif ChooseHHFloor == 2 and ChooseHHRoom == 2 then
  229.                         Z = 50.72
  230.                         x1, y1, x2, y2 = Coord.HarringtonHouse.Room2_2[1], Coord.HarringtonHouse.Room2_2[2], Coord.HarringtonHouse.Room2_2[3], Coord.HarringtonHouse.Room2_2[4]
  231.                     elseif ChooseHHFloor == 2 and ChooseHHRoom == 3 then
  232.                         Z = 50.72
  233.                         x1, y1, x2, y2 = Coord.HarringtonHouse.Room2_3[1], Coord.HarringtonHouse.Room2_3[2], Coord.HarringtonHouse.Room2_3[3], Coord.HarringtonHouse.Room2_3[4]
  234.                     elseif ChooseHHFloor == 3 and ChooseHHRoom == 1 then
  235.                         Z = 55.65
  236.                         x1, y1, x2, y2 = Coord.HarringtonHouse.Room3_1[1], Coord.HarringtonHouse.Room3_1[2], Coord.HarringtonHouse.Room3_1[3], Coord.HarringtonHouse.Room3_1[4]
  237.                     elseif ChooseHHFloor == 3 and ChooseHHRoom == 2 then
  238.                         Z = 55.65
  239.                         x1, y1, x2, y2 = Coord.HarringtonHouse.Room3_2[1], Coord.HarringtonHouse.Room3_2[2], Coord.HarringtonHouse.Room3_2[3], Coord.HarringtonHouse.Room3_2[4]
  240.                     elseif ChooseHHFloor == 3 and ChooseHHRoom == 3 then
  241.                         Z = 55.65
  242.                         x1, y1, x2, y2 = Coord.HarringtonHouse.Room3_3[1], Coord.HarringtonHouse.Room3_3[2], Coord.HarringtonHouse.Room3_3[3], Coord.HarringtonHouse.Room3_3[4]
  243.                     elseif ChooseHHFloor == 3 and ChooseHHRoom == 4 then
  244.                         Z = 57.12
  245.                         x1, y1, x2, y2 = Coord.HarringtonHouse.Room3_4[1], Coord.HarringtonHouse.Room3_4[2], Coord.HarringtonHouse.Room3_4[3], Coord.HarringtonHouse.Room3_4[4]
  246.                     end
  247.                     if math.random(300) >= 297 then
  248.                         summonPrep(math.random(x2, x1), math.random(y2, y1), Z)
  249.                     end
  250.                 end
  251.             end
  252.  
  253.         -- Junkyard
  254.         elseif AreaGetVisible() == 43 then
  255.             if not MissionActiveSpecific("3_B") then
  256.                 if not bike or not VehicleIsValid(bike) then
  257.                     local bikeModel = {277, 278, 279, 280, 281, 282, 283}
  258.                     bike = VehicleCreatePoint(bikeModel[math.random(table.getn(bikeModel))], POINTLIST._PLAYERBIKEFIRSTSTART)
  259.                     VehicleMakeAmbient(bike)
  260.                 end
  261.             end
  262.  
  263.         -- Warehouse
  264.         elseif AreaGetVisible() == 54 then
  265.             if not MissionActiveSpecific("5_02") and not MissionActiveSpecific("5_G5") then
  266.                 townies, summonTownie = {
  267.                     41, 42, 43, 44, 45, 46, 47, 91, 125, 150, 153, 154, 196, 197, 198, 199
  268.                 }, function(xm, ym, zm)
  269.                     townie = PedCreateXYZ(townies[math.random(table.getn(townies))], x, y, z)
  270.                     PedMakeAmbient(townie)
  271.                     PedMoveToXYZ(townie, 0, xm, ym, zm)
  272.                 end
  273.                 local ChooseWHspawn, ChooseWHarea = math.random(2) math.random(3)
  274.                 if ChooseWHspawn == 1 then
  275.                     x, y, z = Coord.Warehouse.InDoorF[2], Coord.Warehouse.InDoorF[3], Coord.Warehouse.InDoorF[4]
  276.                 elseif ChooseWHspawn == 2 then
  277.                     x, y, z = Coord.Warehouse.InDoorB[2], Coord.Warehouse.InDoorB[3], Coord.Warehouse.InDoorB[4]
  278.                 end
  279.                 if ChooseWHarea == 1 then
  280.                     Z = 0.05
  281.                     x1, y1, x2, y2 = Coord.Warehouse.FA1[1], Coord.Warehouse.FA1[2], Coord.Warehouse.FA1[3], Coord.Warehouse.FA1[4]
  282.                 elseif ChooseWHarea == 2 then
  283.                     Z = 6.74
  284.                     x1, y1, x2, y2 = Coord.Warehouse.FA2[1], Coord.Warehouse.FA2[2], Coord.Warehouse.FA2[3], Coord.Warehouse.FA2[4]
  285.                 elseif ChooseWHarea == 3 then
  286.                     Z = 10.5
  287.                     x1, y1, x2, y2 = Coord.Warehouse.FA3[1], Coord.Warehouse.FA3[2], Coord.Warehouse.FA3[3], Coord.Warehouse.FA3[4]
  288.                 end
  289.                 if math.random(300) >= 298 then
  290.                     summonTownie(math.random(x1, x2), math.random(y2, y1), Z)
  291.                 end
  292.             end
  293.         else
  294.             x, y, z = 0, 0, 0
  295.             x1, y1, x2, y2 = 0, 0, 0, 0
  296.             Z = 0
  297.             if VehicleIsValid(bike) then
  298.                 VehicleDelete(bike)
  299.             end
  300.         end
  301.     end
  302. end
  303.  
  304. function AreaAndInterior_mod()
  305.     CreatePersistentEntity("DPE_Dumpster", -736, -630.1, 3.55, 90, 43)
  306.     CreateThread("AreaAndInterior_main")
  307. end
  308.  
  309. function CreateBlips()
  310.     -- Chemistry
  311.     BlipAddXYZ(Coord.Chemistry.Out[2], Coord.Chemistry.Out[3], Coord.Chemistry.Out[4], 1, 0, 8)
  312.     BlipAddXYZ(Coord.Chemistry.In[2], Coord.Chemistry.In[3], Coord.Chemistry.In[4], 1, 0, 8)
  313.  
  314.     -- Principal Office
  315.     BlipAddXYZ(Coord.PrincipalOffice.Out[2], Coord.PrincipalOffice.Out[3], Coord.PrincipalOffice.Out[4], 1, 0, 8)
  316.     BlipAddXYZ(Coord.PrincipalOffice.In[2], Coord.PrincipalOffice.In[3], Coord.PrincipalOffice.In[4], 1, 0, 12)
  317.  
  318.     -- Junkyard
  319.     BlipAddXYZ(Coord.Junkyard.Out[2], Coord.Junkyard.Out[3], Coord.Junkyard.Out[4], 1, 0, 8)
  320.     BlipAddXYZ(Coord.Junkyard.In[2], Coord.Junkyard.In[3], Coord.Junkyard.In[4], 1, 0, 12)
  321.  
  322.     -- Art
  323.     BlipAddXYZ(Coord.Art.In[2], Coord.Art.In[3], Coord.Art.In[4], 1, 0, 12)
  324.  
  325.     -- Math
  326.     BlipAddXYZ(Coord.Math.Out[2], Coord.Math.Out[3], Coord.Math.Out[4], 1, 0, 8)
  327.  
  328.     -- Biology
  329.     BlipAddXYZ(Coord.Biology.Out[2], Coord.Biology.Out[3], Coord.Biology.Out[4], 1, 0, 8)
  330.     BlipAddXYZ(Coord.Biology.In[2], Coord.Biology.In[3], Coord.Biology.In[4], 1, 0, 12)
  331.  
  332.     -- English
  333.     BlipAddXYZ(Coord.English.Out[2], Coord.English.Out[3], Coord.English.Out[4], 1, 0, 8)
  334.  
  335.     -- Music
  336.     BlipAddXYZ(Coord.Music.InDoor[2], Coord.Music.InDoor[3], Coord.Music.InDoor[4], 1, 0, 12)
  337.     BlipAddXYZ(Coord.Music.Out[2], Coord.Music.Out[3], Coord.Music.Out[4], 1, 0, 8)
  338.  
  339.     -- Geography
  340.     BlipAddXYZ(Coord.Geography.Out[2], Coord.Geography.Out[3], Coord.Geography.Out[4], 1, 0, 8)
  341.  
  342.     -- Observatory
  343.     BlipAddXYZ(Coord.Observatory.Out[2], Coord.Observatory.Out[3], Coord.Observatory.Out[4], 1, 0, 8)
  344.     BlipAddXYZ(Coord.Observatory.In[2], Coord.Observatory.In[3], Coord.Observatory.In[4], 1, 0, 12)
  345. end
  346.  
  347. function AreaAndInterior_main()
  348.     while true do
  349.         Wait(0)
  350.         CreateBlips()
  351.         AreaSetAllDoorsUnlocked()
  352.         -- Chemistry
  353.         if PedIsInAreaXYZ(gPlayer, Coord.Chemistry.Out[2], Coord.Chemistry.Out[3], Coord.Chemistry.Out[4], 1) then
  354.             TextPrintString("\b Enter", 0, 2)
  355.             if IsButtonBeingPressed(9, 0) and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  356.                 AreaTransitionXYZ(Coord.Chemistry.In[1], Coord.Chemistry.In[2], Coord.Chemistry.In[3], Coord.Chemistry.In[4])
  357.             end
  358.         -- Chemistry class exit
  359.         elseif PedIsInAreaXYZ(gPlayer, Coord.Chemistry.In[2], Coord.Chemistry.In[3], Coord.Chemistry.In[4], 1) then
  360.             TextPrintString("\b Exit", 0, 2)
  361.             if IsButtonBeingPressed(9, 0) and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  362.                 AreaTransitionXYZ(Coord.Chemistry.Out[1], Coord.Chemistry.Out[2], Coord.Chemistry.Out[3], Coord.Chemistry.Out[4])
  363.             end
  364.  
  365.         -- Principal office
  366.         elseif PedIsInAreaXYZ(gPlayer, Coord.PrincipalOffice.Out[2], Coord.PrincipalOffice.Out[3], Coord.PrincipalOffice.Out[4], 1) then
  367.             TextPrintString("\b Enter", 0, 2)
  368.             if IsButtonBeingPressed(9, 0) and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  369.                 AreaTransitionXYZ(Coord.PrincipalOffice.In[1], Coord.PrincipalOffice.In[2], Coord.PrincipalOffice.In[3], Coord.PrincipalOffice.In[4])
  370.             end
  371.         -- Principal office exit
  372.         elseif PedIsInAreaXYZ(gPlayer, Coord.PrincipalOffice.In[2], Coord.PrincipalOffice.In[3], Coord.PrincipalOffice.In[4], 1) then
  373.             TextPrintString("\b Exit", 0, 2)
  374.             if IsButtonBeingPressed(9, 0) and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  375.                 AreaTransitionXYZ(2, -630, -281, 6)
  376.             end
  377.  
  378.         -- Art class exit
  379.         elseif PedIsInAreaXYZ(gPlayer, Coord.Art.In[2], Coord.Art.In[3], Coord.Art.In[4], 1) then
  380.             TextPrintString("\b Exit", 0, 2)
  381.             if IsButtonBeingPressed(9, 0) and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  382.                 AreaTransitionXYZ(Coord.Art.Out[1], Coord.Art.Out[2], Coord.Art.Out[3], Coord.Art.Out[4])
  383.             end
  384.  
  385.         -- Junkyard
  386.         elseif PedIsInAreaXYZ(gPlayer, Coord.Junkyard.Out[2], Coord.Junkyard.Out[3], Coord.Junkyard.Out[4], 1) then
  387.             TextPrintString("\b Enter", 0, 2)
  388.             if IsButtonBeingPressed(9, 0) and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  389.                 AreaTransitionXYZ(Coord.Junkyard.In[1], Coord.Junkyard.In[2], Coord.Junkyard.In[3], Coord.Junkyard.In[4])
  390.             end
  391.         -- Junkyard exit
  392.         elseif PedIsInAreaXYZ(gPlayer, Coord.Junkyard.In[2], Coord.Junkyard.In[3], Coord.Junkyard.In[4], 1) then
  393.             TextPrintString("\b Exit", 0, 2)
  394.             if IsButtonBeingPressed(9, 0) and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  395.                 AreaTransitionXYZ(Coord.Junkyard.Out[1], Coord.Junkyard.Out[2], Coord.Junkyard.Out[3], Coord.Junkyard.Out[4])
  396.             end
  397.  
  398.         -- Music
  399.         elseif PedIsInAreaXYZ(gPlayer, Coord.Music.Out[2], Coord.Music.Out[3], Coord.Music.Out[4], 1) then
  400.             TextPrintString("\b Enter", 0, 2)
  401.             if IsButtonBeingPressed(9, 0) and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  402.                 AreaTransitionXYZ(Coord.Music.In[1], Coord.Music.In[2], Coord.Music.In[3], Coord.Music.In[4])
  403.             end
  404.         -- Music exit
  405.         elseif PedIsInAreaXYZ(gPlayer, Coord.Music.InDoor[2], Coord.Music.InDoor[3], Coord.Music.InDoor[4], 1) then
  406.             TextPrintString("\b Exit", 0, 2)
  407.             if IsButtonBeingPressed(9, 0) and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  408.                 AreaTransitionXYZ(Coord.Music.Out[1], Coord.Music.Out[2], Coord.Music.Out[3], Coord.Music.Out[4])
  409.             end
  410.  
  411.         -- Biology
  412.         elseif PedIsInAreaXYZ(gPlayer, Coord.Biology.Out[2], Coord.Biology.Out[3], Coord.Biology.Out[4], 1) then
  413.             TextPrintString("\b Enter", 0, 2)
  414.             if IsButtonBeingPressed(9, 0) and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  415.                 AreaTransitionXYZ(Coord.Biology.In[1], Coord.Biology.In[2], Coord.Biology.In[3], Coord.Biology.In[4])
  416.             end
  417.         -- Biology exit
  418.         elseif PedIsInAreaXYZ(gPlayer, Coord.Biology.In[2], Coord.Biology.In[3], Coord.Biology.In[4], 1) then
  419.             TextPrintString("\b Exit", 0, 2)
  420.             if IsButtonBeingPressed(9, 0) and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  421.                 AreaTransitionXYZ(Coord.Biology.Out[1], Coord.Biology.Out[2], Coord.Biology.Out[3], Coord.Biology.Out[4])
  422.             end
  423.  
  424.         -- Math
  425.         elseif PedIsInAreaXYZ(gPlayer, Coord.Math.Out[2], Coord.Math.Out[3], Coord.Math.Out[4], 1) then
  426.             TextPrintString("\b Enter", 0, 2)
  427.             if IsButtonBeingPressed(9, 0) and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  428.                 AreaTransitionXYZ(Coord.Math.In[1], Coord.Math.In[2], Coord.Math.In[3], Coord.Math.In[4])
  429.             end
  430.  
  431.         -- English
  432.         elseif PedIsInAreaXYZ(gPlayer, Coord.English.Out[2], Coord.English.Out[3], Coord.English.Out[4], 1) then
  433.             TextPrintString("\b Enter", 0, 2)
  434.             if IsButtonBeingPressed(9, 0) and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  435.                 AreaTransitionXYZ(Coord.English.In[1], Coord.English.In[2], Coord.English.In[3], Coord.English.In[4])
  436.             end
  437.  
  438.         -- Geography
  439.         elseif PedIsInAreaXYZ(gPlayer, Coord.Geography.Out[2], Coord.Geography.Out[3], Coord.Geography.Out[4], 1) then
  440.             TextPrintString("\b Enter", 0, 2)
  441.             if IsButtonBeingPressed(9, 0) and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  442.                 AreaTransitionXYZ(Coord.English.In[1], Coord.English.In[2], Coord.English.In[3], Coord.English.In[4])
  443.             end
  444.  
  445.         -- Observatory
  446.         elseif PedIsInAreaXYZ(gPlayer, Coord.Observatory.Out[2], Coord.Observatory.Out[3], Coord.Observatory.Out[4], 1) then
  447.             TextPrintString("\b Enter", 0, 2)
  448.             if IsButtonBeingPressed(9, 0) and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  449.                 AreaTransitionXYZ(Coord.Observatory.In[1], Coord.Observatory.In[2], Coord.Observatory.In[3], Coord.Observatory.In[4])
  450.             end
  451.         -- Observatory exit
  452.         elseif PedIsInAreaXYZ(gPlayer, Coord.Observatory.In[2], Coord.Observatory.In[3], Coord.Observatory.In[4], 1) then
  453.             TextPrintString("\b Exit", 0, 2)
  454.             if IsButtonBeingPressed(9, 0) and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  455.                 AreaTransitionXYZ(Coord.Observatory.Out[1], Coord.Observatory.Out[2], Coord.Observatory.Out[3], Coord.Observatory.Out[4])
  456.             end
  457.         end
  458.  
  459.         --[[if IsButtonBeingPressed(9, 0) and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
  460.             if PedIsInAreaXYZ(gPlayer, -599, 326, 35, 1) then
  461.                 AreaTransitionXYZ(Coord.Chemistry.Out[1], Coord.Chemistry.Out[2], Coord.Chemistry.Out[3], Coord.Chemistry.Out[4])
  462.                 PedFaceXYZ(gPlayer, Coord.Chemistry.OutDoor[2], Coord.Chemistry.OutDoor[3], Coord.Chemistry.OutDoor[4])
  463.             elseif PedIsInAreaXYZ(gPlayer, -630, -281, 6, 1) then
  464.                 AreaTransitionXYZ(5, -701, 216, 32)
  465.                 PedFaceXYZ(gPlayer, -701, 214, 32)
  466.             elseif PedIsInAreaXYZ(gPlayer, -701, 216, 32, 1) then
  467.                 AreaTransitionXYZ(2, -630, -281, 6)
  468.             elseif PedIsInAreaXYZ(gPlayer, -536, 377, 15, 1) then
  469.                 AreaTransitionXYZ(2, -670, -294, 6)
  470.                 PedFaceXYZ(gPlayer, -670, -296, 6)
  471.             elseif PedIsInAreaXYZ(gPlayer, 549, -491, 5, 1) then
  472.                 AreaTransitionXYZ(43, -583, -621, 5)
  473.             elseif PedIsInAreaXYZ(gPlayer, -583, -621, 5, 1) then
  474.                 AreaTransitionXYZ(0, 549, -491, 5)
  475.             end
  476.         end]]
  477.     end
  478. end
  479.  
  480. function ChanceSpawnPedAndChanceToBringABookAndMoveHim(chance, chance1, X1, Y1, Z1)
  481.     if math.random(chance) == chance/2 then
  482.         student = PedCreateXYZ(Students[math.random(table.getn(Students))], x, y, z)
  483.         PedMakeAmbient(student)
  484.         if ChanceBringABook(chance1) then
  485.             PedSetWeapon(student, Books[math.random(table.getn(Books))], 1)
  486.         end
  487.         PedMoveToXYZ(student, 0, X1, Y1, Z1)
  488.     end
  489. end
  490.  
  491. function CheckPedAtNight()
  492.     for you, PED in {PedFindInAreaXYZ(0, 0, 0, 99999)} do
  493.         if PedIsValid(PED) and PED ~= gPlayer then
  494.             PedMoveToXYZ(PED, 1, x, y, z)
  495.             if PedIsInAreaXYZ(PED, x, y, z, 1.2) then
  496.                 PedDelete(PED)
  497.             end
  498.         end
  499.     end
  500. end
  501.  
  502. function ChanceBringABook(c)
  503.     return math.random(100) <= c
  504. end
  505.  
  506. function MorningTime()
  507.     if Hour >= 7 and Hour < 9 then
  508.         return true
  509.     end
  510.     return false
  511. end
  512.  
  513. function ClassTime()
  514.     if ((Hour >= 9 and Minute >= 0) and (Hour <= 11 and Minute < 30)) or ((Hour >= 13 and Minute >= 0) and (Hour <= 15 and Minute < 30)) then
  515.         return true
  516.     end
  517.     return false
  518. end
  519.  
  520. function LunchTime()
  521.     if (Hour >= 11 and Minute >= 30) and (Hour < 13) then
  522.         return true
  523.     end
  524.     return false
  525. end
  526.  
  527. function FreeTime()
  528.     if (Hour >= 15 and Minute >= 30) and Hour < 19 then
  529.         return true
  530.     end
  531.     return false
  532. end
  533.  
  534. function NightTime()
  535.     if Hour >= 19 or Hour < 7 then
  536.         return true
  537.     end
  538.     return false
  539. end
  540.  
  541. function AreaSetAllDoorsUnlocked()
  542.   AreaSetDoorLocked(TRIGGER._DT_ischool_AuditorDoorL, false)
  543.   AreaSetDoorLocked(TRIGGER._DT_ischool_AuditorDoorL, false)
  544.   AreaSetDoorLocked(TRIGGER._DT_iSafeDrop_DoorL, false)
  545.   AreaSetDoorLocked(TRIGGER._5_03_Control_Room_Door, false)
  546.   AreaSetDoorLocked(TRIGGER._DT_TINDUST_CHEMEX_DOOR, false)
  547.   AreaSetDoorLocked(TRIGGER._DT_Observatory, false)
  548.   AreaSetDoorLocked(TRIGGER._DT_ASYLUM_FRONT_DOOR, false)
  549.   AreaSetDoorLocked(TRIGGER._DT_classr_doorL, false)
  550.   AreaSetDoorLocked(TRIGGER._DT_classr_doorL, false)
  551.   AreaSetDoorLocked(TRIGGER._DT_classr2_doorL, false)
  552.   AreaSetDoorLocked(TRIGGER._DT_ChemPlant_DoorL, false)
  553.   AreaSetDoorLocked(TRIGGER._3_S11_Path1_Door1, false)
  554.   AreaSetDoorLocked(TRIGGER._3_S11_Path1_Door3, false)
  555.   AreaSetDoorLocked(TRIGGER._3_S11_Path2_Door1, false)
  556.   AreaSetDoorLocked(TRIGGER._3_S11_Path2_Door2, false)
  557.   AreaSetDoorLocked(TRIGGER._5_03_Rec_Room, false)
  558.   AreaSetDoorLocked(TRIGGER._5_03_Patient_Room1, false)
  559.   AreaSetDoorLocked(TRIGGER._5_03_Patient_Room2, false)
  560.   AreaSetDoorLocked(TRIGGER._5_03_Patient_Room3, false)
  561.   AreaSetDoorLocked(TRIGGER._DT_ASYLUM_BACK_EXIT, false)
  562.   AreaSetDoorLocked(TRIGGER._DT_ASYLUM_FRONT_DOOR, false)
  563.   AreaSetDoorLocked(TRIGGER._DT_ASYLUM_SIDE_EXIT, false)
  564.   AreaSetDoorLocked(TRIGGER._DT_ischool_RoofDoor, false)
  565.   AreaSetDoorLocked(TRIGGER._DT_ischool_RoofDoor, false)
  566.   AreaSetDoorLocked(TRIGGER._DT_ischool_Staff, false)
  567.   AreaSetDoorLocked(TRIGGER._DT_ischool_Staff, false)
  568.   AreaSetDoorLocked(TRIGGER._DT_ISCHOOL_BIO, false)
  569.   AreaSetDoorLocked(TRIGGER._DT_ISCHOOL_BIO, false)
  570.   AreaSetDoorLocked(TRIGGER._DT_iSafeDrop_DoorL, false)
  571.   AreaSetDoorLocked(TRIGGER._DT_tind_SafeDrop, false)
  572.   AreaSetDoorLocked(TRIGGER._DT_tschool_SafeJock, false)
  573.   AreaSetDoorLocked(TRIGGER._DT_iSafeGrsr_DoorL, false)
  574.   AreaSetDoorLocked(TRIGGER._DT_tpoor_SafeGreaser, false)
  575.   AreaSetDoorLocked(TRIGGER._DT_ischool_Art, false)
  576.   AreaSetDoorLocked(TRIGGER._DT_ischool_Art, false)
  577.   AreaSetDoorLocked(TRIGGER._DT_ischool_AuditorBalc, false)
  578.   AreaSetDoorLocked(TRIGGER._DT_ischool_Classroom, false)
  579.   AreaSetDoorLocked(TRIGGER._DT_ischool_Classroom, false)
  580.   AreaSetDoorLocked(TRIGGER._DT_tschool_SchoolSideDoorL, false)
  581.   AreaSetDoorLocked(TRIGGER._DT_ischool_Door01, false)
  582.   AreaSetDoorLocked(TRIGGER._DT_ischool_Door01, false)
  583.   AreaSetDoorLocked(TRIGGER._DT_Janitor_SchoolExit, false)
  584.   AreaSetDoorLocked(TRIGGER._DT_Janitor_MainExit, false)
  585.   AreaSetDoorLocked(TRIGGER._DT_ASYLUM_FRONT_DOOR, false)
  586.   AreaSetDoorLocked(TRIGGER._DT_ASYLUM_SIDE_EXIT, false)
  587.   AreaSetDoorLocked(TRIGGER._DT_classr_doorL, false)
  588.   AreaSetDoorLocked(TRIGGER._DT_classr_doorL, false)
  589.   AreaSetDoorLocked(TRIGGER._DT_ChemPlant_DoorL, false)
  590.   AreaSetDoorLocked(TRIGGER._DT_ChemPlant_DoorL, false)
  591.   AreaSetDoorLocked(TRIGGER._DT_ischool_Classroom, false)
  592.   AreaSetDoorLocked(TRIGGER._DT_ISCHOOL_CHEM, false)
  593.   AreaSetDoorLocked(TRIGGER._DT_ischool_Janitor, false)
  594.   AreaSetDoorLocked(TRIGGER._DT_ischool_PrincipalDoorL, false)
  595.   AreaSetDoorLocked(TRIGGER._DT_ischool_Classroom, false)
  596.   AreaSetDoorLocked(TRIGGER._DT_ischool_Art, false)
  597.   AreaSetDoorLocked(TRIGGER._DT_Tenement_Window, false)
  598.   AreaSetDoorLocked(TRIGGER._DT_Tenement_Window, false)
  599.   AreaSetDoorLocked(TRIGGER._DT_ASYLUM_BACK_EXIT, false)
  600.   AreaSetDoorLocked(TRIGGER._DT_ASYLUM_BACK_EXIT, false)
  601.   AreaSetDoorLocked(TRIGGER._DT_iSafeNerd_DoorL, false)
  602.   AreaSetDoorLocked(TRIGGER._DT_iSafeNerd_DoorL, false)
  603.   AreaSetDoorLocked(TRIGGER._5_03_Control_Orderly_Path, false)
  604.   AreaSetDoorLocked(TRIGGER._3_S11_Asylum_Gate_Warning, false)
  605.   AreaSetDoorLocked(TRIGGER._3_S11_Asylum_Gate_Warning2, false)
  606.   AreaSetDoorLocked(TRIGGER._ASYLUM_FRONT_GATE_DOOR, false)
  607.   AreaSetDoorLocked(TRIGGER._ASYLUM_FRONT_DOOR_R, false)
  608.   AreaSetDoorLocked(TRIGGER._DT_tschool_SchoolSideDoorL, false)
  609.   AreaSetDoorLocked(TRIGGER._DT_tschool_SchoolSideDoorL, false)
  610.   AreaSetDoorLocked(TRIGGER._5_B_DEBUG_STAGE4, false)
  611.   AreaSetDoorLocked(TRIGGER._5_B_EDGARMOVETO, false)
  612.   AreaSetDoorLocked(TRIGGER._ChemPlantLower, false)
  613.   AreaSetDoorLocked(TRIGGER._ChemPlantStairTunnel, false)
  614.   AreaSetDoorLocked(TRIGGER._DT_TSCHOOL_ROOFDOOR, false)
  615.   AreaSetDoorLocked(TRIGGER._DT_ISCHOOL_ROOFDOOR, false)
  616.   AreaSetDoorLocked(TRIGGER._ISCHOOL_DOOR25, false)
  617.   AreaSetDoorLocked(TRIGGER._DT_gym_doorL,false)
  618.   AreaSetDoorLocked(TRIGGER._DOOR_PREPHOUSE_STAIRS, false)
  619.   AreaSetDoorLocked(TRIGGER._DT_TSCHOOL_PREPPYL, false)
  620.   AreaSetDoorLocked(TRIGGER._DT_TSCHOOL_PREPPYL, false)
  621.   AreaSetDoorLocked(TRIGGER._DOOR_PREPHOUSE_FOYER, false)
  622.   AreaSetDoorLocked(TRIGGER._DT_PREPTOMAIN, false)
  623. end
  624.  
  625. function main()
  626.     while not SystemIsReady() or AreaIsLoading() do
  627.         Wait(0)
  628.     end
  629.     TextPrintString("Populated classrooms\n&\nUnlocked interiors\n\nBy: RBS ID", 3, 1)
  630.     PopulatedClassrooms_mod()
  631.     AreaAndInterior_mod()
  632.     while true do
  633.         Wait(0)
  634.     end
  635. end
  636.  
  637. -- STimeCycle:
  638. F_AttendedClass = function()
  639.   if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
  640.     return
  641.   end
  642.   SetSkippedClass(false)
  643.   PlayerSetPunishmentPoints(0)
  644. end
  645.  
  646. F_MissedClass = function()
  647.   if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
  648.     return
  649.   end
  650.   SetSkippedClass(true)
  651.   StatAddToInt(166)
  652. end
  653.  
  654. F_AttendedCurfew = function()
  655.   if not PedInConversation(gPlayer) and not MissionActive() then
  656.     TextPrintString("You got home in time for curfew", 4)
  657.   end
  658. end
  659.  
  660. F_MissedCurfew = function()
  661.   if not PedInConversation(gPlayer) and not MissionActive() then
  662.     TextPrint("TM_TIRED5", 4, 2)
  663.   end
  664. end
  665.  
  666. F_StartClass = function()
  667.   if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
  668.     return
  669.   end
  670.   F_RingSchoolBell()
  671.   local l_6_0 = PlayerGetPunishmentPoints() + GetSkippingPunishment()
  672. end
  673.  
  674. F_EndClass = function()
  675.   if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
  676.     return
  677.   end
  678.   F_RingSchoolBell()
  679. end
  680.  
  681. F_StartMorning = function()
  682.   F_UpdateTimeCycle()
  683. end
  684.  
  685. F_EndMorning = function()
  686.   F_UpdateTimeCycle()
  687. end
  688.  
  689. F_StartLunch = function()
  690.   if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
  691.     F_UpdateTimeCycle()
  692.     return
  693.   end
  694.   F_UpdateTimeCycle()
  695. end
  696.  
  697. F_EndLunch = function()
  698.   F_UpdateTimeCycle()
  699. end
  700.  
  701. F_StartAfternoon = function()
  702.   F_UpdateTimeCycle()
  703. end
  704.  
  705. F_EndAfternoon = function()
  706.   F_UpdateTimeCycle()
  707. end
  708.  
  709. F_StartEvening = function()
  710.   F_UpdateTimeCycle()
  711. end
  712.  
  713. F_EndEvening = function()
  714.   F_UpdateTimeCycle()
  715. end
  716.  
  717. F_StartCurfew_SlightlyTired = function()
  718.   F_UpdateTimeCycle()
  719. end
  720.  
  721. F_StartCurfew_Tired = function()
  722.   F_UpdateTimeCycle()
  723. end
  724.  
  725. F_StartCurfew_MoreTired = function()
  726.   F_UpdateTimeCycle()
  727. end
  728.  
  729. F_StartCurfew_TooTired = function()
  730.   F_UpdateTimeCycle()
  731. end
  732.  
  733. F_EndCurfew_TooTired = function()
  734.   F_UpdateTimeCycle()
  735. end
  736.  
  737. F_EndTired = function()
  738.   F_UpdateTimeCycle()
  739. end
  740.  
  741. F_Nothing = function()
  742. end
  743.  
  744. F_ClassWarning = function()
  745.   if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
  746.     return
  747.   end
  748.   local l_23_0 = math.random(1, 2)
  749. end
  750.  
  751. F_UpdateTimeCycle = function()
  752.   if not IsMissionCompleated("1_B") then
  753.     local l_24_0 = GetCurrentDay(false)
  754.     if l_24_0 < 0 or l_24_0 > 2 then
  755.       SetCurrentDay(0)
  756.     end
  757.   end
  758.   F_UpdateCurfew()
  759. end
  760.  
  761. F_UpdateCurfew = function()
  762.   local l_25_0 = shared.gCurfewRules
  763.   if not l_25_0 then
  764.     l_25_0 = F_CurfewDefaultRules
  765.   end
  766.   l_25_0()
  767. end
  768.  
  769. F_CurfewDefaultRules = function()
  770.   local l_26_0 = ClockGet()
  771.   if l_26_0 >= 23 or l_26_0 < 7 then
  772.     shared.gCurfew = true
  773.   else
  774.     shared.gCurfew = false
  775.   end
  776. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement