Advertisement
glitchdetector

FiveM Scenario stuff

Jan 6th, 2019
703
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.78 KB | None | 0 0
  1. Citizen.CreateThread(function()
  2.     -- Other stuff normally here, stripped for the sake of only scenario stuff
  3.     local SCENARIO_TYPES = {
  4.         "WORLD_VEHICLE_MILITARY_PLANES_SMALL", -- Zancudo Small Planes
  5.         "WORLD_VEHICLE_MILITARY_PLANES_BIG", -- Zancudo Big Planes
  6.     }
  7.     local SCENARIO_GROUPS = {
  8.         2017590552, -- LSIA planes
  9.         2141866469, -- Sandy Shores planes
  10.         1409640232, -- Grapeseed planes
  11.         "ng_planes", -- Far up in the skies jets
  12.     }
  13.     local SUPPRESSED_MODELS = {
  14.         "SHAMAL", -- They spawn on LSIA and try to take off
  15.         "LUXOR", -- They spawn on LSIA and try to take off
  16.         "LUXOR2", -- They spawn on LSIA and try to take off
  17.         "JET", -- They spawn on LSIA and try to take off and land, remove this if you still want em in the skies
  18.         "LAZER", -- They spawn on Zancudo and try to take off
  19.         "TITAN", -- They spawn on Zancudo and try to take off
  20.         "BARRACKS", -- Regularily driving around the Zancudo airport surface
  21.         "BARRACKS2", -- Regularily driving around the Zancudo airport surface
  22.         "CRUSADER", -- Regularily driving around the Zancudo airport surface
  23.         "RHINO", -- Regularily driving around the Zancudo airport surface
  24.         "AIRTUG", -- Regularily spawns on the LSIA airport surface
  25.         "RIPLEY", -- Regularily spawns on the LSIA airport surface
  26.     }
  27.  
  28.     while true do
  29.         for _, sctyp in next, SCENARIO_TYPES do
  30.             SetScenarioTypeEnabled(sctyp, false)
  31.         end
  32.         for _, scgrp in next, SCENARIO_GROUPS do
  33.             SetScenarioGroupEnabled(scgrp, false)
  34.         end
  35.         for _, model in next, SUPPRESSED_MODELS do
  36.             SetVehicleModelIsSuppressed(GetHashKey(model), true)
  37.         end
  38.         Wait(10000)
  39.     end
  40. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement