BIT - DOCUMENTATION
  • BIT DOCUMENTATION
  • â„šī¸INFORMATION
    • Licensing System
    • Terms of Service
    • Common issues
    • Support
  • ❓HOW TO...
    • Change inventory
      • Add Item
      • Remove Item
    • How to update an asset
    • How to add items
    • Items images
    • Change notifications
  • đŸ–Ĩī¸PAID SCRIPTS
    • đŸ’ŗ BIT-Licenses
      • Installation
      • Commands
      • Triggers & Exports
      • Items
    • đŸĻ  BIT-Diseases
      • Installation
      • Triggers, Export and Commands
    • 🔓 BIT-Unlock
      • Installation
      • Trigger
      • How it works?
    • 🔊 BIT-Radio
      • Installation
      • Configuration
      • Trigger
      • Items
    • 💊 BIT-DrugsCreator
      • Installation
      • Configuration
      • Trigger
      • Target
    • âš ī¸ BIT-Notifications
      • Installation
      • Configuration
      • Trigger
    • đŸ–ī¸BIT-InteractiveCity
      • Installation
      • Dependencies
      • Configuration
      • Actions
      • Target
    • 🚘 BIT-UsedCars
      • Installation
      • Dependencies
      • Configuration
      • Target
    • đŸ—‘ī¸ BIT-GarbageJob
      • Installation
      • Dependencies
      • Configuration
      • Target
      • Items
    • đŸ› ī¸ BIT-AdvancedTasks
      • Installation
      • Dependencies
      • Custom Voices
      • Custom NPC
      • Rewards
      • Target
    • 🏆 BIT-Rewards
      • Installation
      • SQL
      • Configuration
      • Trigger
    • 📊 BIT-Scoreboard
      • Installation
      • Configuration
    • đŸ›ī¸ BIT-Stores
      • Installation
      • Example Items
      • Configuration
      • Create a polyzone
      • Add Items
    • đŸ”Ē BIT-Gangs
      • Installation
      • SQL and Items
      • Configuration
      • Triggers and Exports
    • đŸ’ŧ BIT-Jobs
      • Installation
      • SQL and Items
      • Create Jobs
      • ProgressBar
      • Configuration
      • Add Jobs
      • Random position
      • Triggers
      • Possible mistakes
    • 🏨 BIT-Motels
      • Installation
      • MLO
      • SQL
      • Configuration
      • Triggers
    • 👗 BIT-ClothingShop v.2
      • Installation
      • Create Images
      • Image Resolution
      • Debug & Test
      • SQL
      • Configuration
      • Possible mistakes
    • ✨ BIT-Creator
      • Installation
      • SQL
      • Configuration
      • Triggers
    • đŸĸ BIT-Business 2.0
      • Installation
      • SQL
      • Configuration
      • Colors
      • Income
      • Payment Methods
    • 🚗 BIT-Garage
      • Installation
      • Dependencies
      • Configuration
      • Functions
      • Jobs/Gangs
      • Triggers
      • Commands
      • Possible mistakes
    • 🚘 BIT-VehControl
      • Installation
      • Dependencies
      • Configuration
      • Triggers
      • Possible mistakes
    • 🐾 BIT-Pets
      • Installation
      • SQL
      • Dependencies
      • Configuration
      • Target
      • Triggers
      • Questions
      • Possible mistakes
    • đŸ‘Žâ€â™‚ī¸ BIT-PoliceMDT
      • Installation
      • SQL
      • Configuration
      • Dependencies
      • Triggers
      • Possible mistakes
    • â›Ŋ BIT-Fuel
      • Installation
      • Configuration
      • Exports
      • Questions
    • 💰 BIT-Crypto
      • Installation
      • SQL
      • Configuration
      • Triggers & Exports
      • Questions
    • 🚙 BIT-Carrental
      • Installation
      • Configuration
    • đŸ“ģ BIT-Carradio
      • Installation
      • Dependencies
      • Configuration
    • 📝 BIT-Reportsystem
      • Installation
      • SQL
      • Configuration
      • Questions
    • đŸšĻBIT-Drivingschool
      • Installation
      • SQL
      • MLO
      • Configuration
      • Triggers
      • Add routes
      • License Item
      • Transcription
    • ⚓ BIT-BoatSchool
      • Installation
      • SQL
      • Configuration
      • Triggers
      • Add routes
      • License Item
      • Transcription
    • đŸ›Šī¸ BIT-Flightschool
      • Installation
      • SQL
      • Configuration
      • Triggers
      • Add routes
      • License Item
      • Transcription
    • 🚜 BIT-Dealership
      • Installation
      • Configuration
      • Possible mistakes
    • đŸĒ™ BIT-Coin System
      • Installation
      • Configuration
      • Trigger
    • đŸĻ BIT-Bank
      • Installation
      • SQL
      • Configuration
    • đŸ–Ĩī¸ BIT-HUD
      • Installation
      • Configuration
      • Triggers
    • 🎮 BIT-Battlepass 3
      • Installation
      • SQL
      • Configuration
      • Commands
      • Triggers
      • Questions
      • Possible mistakes
    • 📋 BIT-Pausemenu
      • Installation
      • SQL
      • Configuration
    • đŸ“Ļ BIT-TreasureHunting
      • Installation
      • Dependencies
      • Configuration
      • Target
Powered by GitBook
On this page
  1. PAID SCRIPTS
  2. 🚗 BIT-Garage

Jobs/Gangs

FILE jobs_garages.lua

--       $$$$$\  $$$$$$\  $$$$$$$\   $$$$$$\  
--       \__$$ |$$  __$$\ $$  __$$\ $$  __$$\ 
--          $$ |$$ /  $$ |$$ |  $$ |$$ /  \__|
--          $$ |$$ |  $$ |$$$$$$$\ |\$$$$$$\  
--    $$\   $$ |$$ |  $$ |$$  __$$\  \____$$\ 
--    $$ |  $$ |$$ |  $$ |$$ |  $$ |$$\   $$ |
--    \$$$$$$  | $$$$$$  |$$$$$$$  |\$$$$$$  |
--     \______/  \______/ \_______/  \______/

jobsGarages = {

    ["police"] = { --> Required job
        ---
        ["Mission Row LSPD"] = { 
            coord = vector3(455.81, -1019.72, 28.32),
            spawn_coord = vector4(444.02, -1020.51, 28.18, 100.04),
            save_coord = vector3(430.5, -1015.28, 28.88),
            camera_coord = vector3(437.31, -1020.21, 28.73),
            camera_rot = 100.0,
            vehicles = {
                ["police"] = "Police",
                ["police2"] = "Police 2",
                ["police3"] = "Police 3",
                ["police4"] = "Undercover",
                ["policeb"] = "Motorcycle",
                ["policet"] = "Police Van",
                ["fbi"] = "FBI",
                ["fbi2"] = "FBI Off-Road"
            },
        },
        ---
        ["LSPD Heliport"] = { 
            coord = vector3(461.59, -992.82, 43.69),
            spawn_coord = vector4(449.45, -981.18, 43.69, 95.8),
            save_coord = vector3(449.41, -981.22, 43.69),
            camera_coord = vector3(449.63, -998.14, 45.47),
            camera_rot = 195.0,
            vehicles = {
                ["polmav"] = "Police Maverick",
            }
        },
        ---
        ["Paleto Sheriff"] = { 
            coord = vector3(-450.0, 6003.44, 31.49),
            spawn_coord = vector4(-458.42, 6005.2, 30.95, 84.69),
            save_coord = vector3(-482.41, 6024.57, 30.95),
            camera_coord = vector3(-467.22, 6006.21, 31.34),
            camera_rot = 100.0,
            vehicles = {
                ["sheriff"] = "Sheriff",
                ["sheriff2"] = "Sheriff Off-Road",
                ["riot"] = "Riot",
                ["riot2"] = "Riot 2",
                ["pranger"] = "Ranger"
            },
        },
        ---
        ["Paleto Heliport"] = { 
            coord = vector3(-454.94, 5986.05, 31.29),
            spawn_coord = vector4(-476.07, 5988.75, 31.34, 56.13),
            save_coord = vector3(-476.07, 5988.75, 31.34),
            camera_coord = vector3(-457.25, 6004.21, 32.6),
            camera_rot = 325.0,
            vehicles = {
                ["valkyrie"] = "Valkyrie",
            }
        },
    },

    ["ambulance"] = { --> Required job
        ---
        ["Pillbox Hospital"] = { 
            coord = vector3(296.03, -601.92, 43.3),
            spawn_coord = vector4(275.68, -609.02, 42.71, 274.53),
            save_coord = vector3(292.77, -570.02, 42.95),
            camera_coord = vector3(282.92, -607.61, 43.13),
            camera_rot = 300.0,
            vehicles = {
                ["ambulance"] = "Ambulance",
                ["zion"] = "Doctor Car"
            }
        },
        ---
        ["Pillbox Heliport"] = { 
            coord = vector3(339.37, -588.01, 74.17),
            spawn_coord = vector4(352.87, -587.98, 74.15, 249.46),
            save_coord = vector3(352.87, -587.98, 74.15),
            camera_coord = vector3(334.49, -599.66, 77.12),
            camera_rot = 140.0,
            vehicles = {
                ["cargobob2"] = "Cargobob",
            }
        },
        ---
    },

    ["taxi"] = { --> Required job
        ---
        ["Vinewood Taxi"] = { 
            coord = vector3(902.69, -170.29, 74.08),
            spawn_coord = vector4(917.31, -167.34, 74.15, 101.91),
            save_coord = vector3(913.77, -159.8, 74.39),
            camera_coord = vector3(909.64, -171.43, 74.17),
            camera_rot = 135.0,
            vehicles = {
                ["taxi"] = "Taxi",
                ["tourbus"] = "Tour Bus",
            }
        },
        ---
    },

    ["mechanic"] = { --> Required job
        ---
        ["Burton LSCustoms"] = { 
            coord = vector3(-357.58, -121.37, 38.7),
            spawn_coord = vector4(-371.17, -107.78, 38.77, 68.63),
            save_coord = vector3(-367.04, -108.49, 38.7),
            camera_coord = vector3(-383.65, -109.28, 38.7),
            camera_rot = 115.0,
            vehicles = {
                ["flatbed"] = "FlatBed",
                ["towtruck"] = "Tow Truck",
                ["towtruck2"] = "Tow Truck 2",
                ["sadler"] = "Sadler",
                ["slamtruck"] = "Slam Truck",
            }
        },
        ---
    },
}

--      $$$$$$\   $$$$$$\  $$\   $$\  $$$$$$\   $$$$$$\  
--      $$  __$$\ $$  __$$\ $$$\  $$ |$$  __$$\ $$  __$$\ 
--      $$ /  \__|$$ /  $$ |$$$$\ $$ |$$ /  \__|$$ /  \__|
--      $$ |$$$$\ $$$$$$$$ |$$ $$\$$ |$$ |$$$$\ \$$$$$$\  
--      $$ |\_$$ |$$  __$$ |$$ \$$$$ |$$ |\_$$ | \____$$\ 
--      $$ |  $$ |$$ |  $$ |$$ |\$$$ |$$ |  $$ |$$\   $$ |
--      \$$$$$$  |$$ |  $$ |$$ | \$$ |\$$$$$$  |\$$$$$$  |
 --      \______/ \__|  \__|\__|  \__| \______/  \______/

gangGarages = {

    ["ballas"] = { --> Required gang
        ---
        ["Ballas"] = { 
            coord = vector3(102.67, -1958.5, 20.78),
            spawn_coord = vector4(95.13, -1946.11, 20.21, 213.74),
            save_coord = vector3(116.03, -1949.56, 20.27),
            camera_coord = vector3(100.96, -1949.96, 20.68),
            camera_rot = 255.0,
            vehicles = {
                ["faction2"] = "Faction",
                ["dukes"] = "Dukes",
                ["zombieb"] = "Zombie Moto",
                ["slamvan3"] = "Slamvan",
                ["burrito3"] = "Burrito",
            }
        },
        ---
    },

    ["vagos"] = { --> Required gang
        ---
        ["Vagos"] = { 
            coord = vector3(281.67, -1928.14, 25.77),
            spawn_coord = vector4(289.09, -1933.48, 24.97, 217.93),
            save_coord = vector3(274.04, -1942.44, 24.4),
            camera_coord = vector3(298.52, -1932.82, 25.5),
            camera_rot = 295.0,
            vehicles = {
                ["faction2"] = "Faction",
                ["dukes"] = "Dukes",
                ["zombieb"] = "Zombie Moto",
                ["slamvan3"] = "Slamvan",
                ["burrito3"] = "Burrito",
            }
        },
        ---
    },
}

You can add as many job garages or gangs as you want, note that the following function has been added in the functions.lua file:

--   ___   ___  __  __   ___   __ 
--  // \\ // \\ ||\ ||  // \\ (( \
-- (( ___ ||=|| ||\\|| (( ___  \\ 
--  \\_|| || || || \||  \\_|| \_))

function GetPlayerGang(playerID)
    if Config.Framework == "esx" then
        --
    elseif Config.Framework == "qb" then
        if QBCore.Functions.GetPlayerData().gang ~= nil then
            local userGang = QBCore.Functions.GetPlayerData().gang.name
            return userGang
        end
    end
end

In QB there is a default Gangs system. But in ESX as well as in QB you can modify the way in which the gang to which the user belongs should be recovered.

This band must match the name you put in the jobs_garages.lua file:

gangGarages = {
    ["ballas"] = { --> Required gang
    ...
PreviousFunctionsNextTriggers

Last updated 1 year ago

đŸ–Ĩī¸