CodeWorks
YoutubeDiscordTebex
  • Welcome!
  • Main
    • How can i download my script
    • How can i transfer my script
    • Whats escrow system?
  • Errors
    • You lack the required entitlement to use cdw-*
  • Scripts
    • Boss Menu
      • Installation
      • Configuration
      • Language Files
      • Events / Export List
      • Editable Files
        • sv_utils.lua
        • cl_utils.lua
        • cl_mugshot.lua
    • Hud System
      • Installation
      • Configuration
      • Language Files
      • Events / Export List
      • Editable Files
        • sv_utils.lua
        • cl_utils.lua
      • Integrations
        • QB Core
          • Notification
          • Progressbar
        • ESX
          • Notification
          • Progressbar
        • ox_lib
          • Notification
          • Progressbar
  • GPS & Bodycam
    • GPS System
      • Installation
      • Configuration
      • Language Files
      • Editable Files
        • sv_utils.lua
        • cl_utils.lua
    • Bodycam System
      • Installation
      • Configuration
      • Language Files
      • Editable Files
        • sv_utils.lua
        • cl_utils.lua
Powered by GitBook
On this page
  1. GPS & Bodycam
  2. GPS System

Configuration

config.lua
Config = {}

Config.framework = "auto" -- "auto" or "qb" for QB, "qbx" for QBOX, "esx" for ESX
Config.inventory = "auto" -- "qb" or "ox" 

Config.updateRate = 500 -- GPS Update Rate in miliseconds 
Config.dynamicUpdate = true -- If true, the GPS update rate will increase dynamically based on the number of players using GPS
Config.dynamicIncreaseRate = 25 -- The amount in milliseconds by which the update rate will increase for each additional GPS user after the first 10 users
Config.dynamicUpdateThreshold = 10 -- This is the amount of GPS players after which the dynamic increase will start.

Config.sprites = {
    car = 225,
    helicopter = 43,
    boat = 427,
    normal = 1,
    plane = 423,
    bike = 226
}

Config.colors = {
    {
        colorId = 46,
        uiColor = "#ecf028",
    },
    {
        colorId = 1,
        uiColor = "#e03233",
    },
    {
        colorId = 2,
        uiColor = "#71cb71",
    },
    {
        colorId = 3,
        uiColor = "#5eb6e6",
    },
    {
        colorId = 7,
        uiColor = "#9c6eaf",
    },
    {
        colorId = 47,
        uiColor = "#fe9a18",
    },
    {
        colorId = 52,
        uiColor = "#416d40",
    },
    {
        colorId = 66,
        uiColor = "#f1cb56",
    },
    {
        colorId = 56,
        uiColor = "#857233",
    },
}

Config.GpsJobs = {
    ["police"] = { -- Job name
        label = "LSPD", -- Job Label (For UI)
        color = 3, -- Default blip color, make sure you choose a color defined in Config.colors
        channels = {
            "PD" ,"SD","PR"
        }
    },
    ["sapr"] = { -- Job name
        label = "SAPR", -- Job Label (For UI)
        color = 52, -- Default blip color, make sure you choose a color defined in Config.colors
        channels = {
            "PD" ,"SD","PR"
        }
    },
    ["bcso"] = { -- Job name
        label = "BCSO", -- Job Label (For UI)
        color = 66, -- Default blip color, make sure you choose a color defined in Config.colors
        channels = {
            "PD" ,"SD","PR"
        }
    },
    ["sasp"] = { -- Job name
        label = "SASP", -- Job Label (For UI)
        color = 56, -- Default blip color, make sure you choose a color defined in Config.colors
        channels = {
            "PD" ,"SD","PR"
        }
    },
    ["ambulance"] = { -- Job name
        label = "LSMS", -- Job Label (For UI)
        color = 1, -- Default blip color, make sure you choose a color defined in Config.colors
        channels = {
            "PD" ,"SD","PR", "LSMS"
        }
    }
}

Config.GpsItems = {
    ["gps"] = {
        jobs = {"police", "sasp", "bcso", "sapr", "ambulance"},
    },
    ["illegal_gps"] = {
        jobs = nil,
    }
}

Config.locale = "tr" -- "en" or "tr"
Config.locales = {} -- Don't Edit
PreviousInstallationNextLanguage Files

Last updated 4 months ago

Page cover image