config.lua
--[[
- this script needs tgiann-core script to work, you can download the script from your keymaster account
Start tgiann-core script after es_extented/qb-core script and before tgiann-* scripts
Adjust the tgiann-core config file according to the framework you are using
]]
tgiCoreExports = exports["tgiann-core"]
config = tgiCoreExports:getConfig()
config.lang = "en"
config.jobChannels = {
police = { -- Job Name
"police1", "police2", "police3" -- Channel Name
},
ambulance = {
"ambulance1", "ambulance2", "ambulance3"
}
}
config.serverUpdateRate = 3000 -- milisecond (update time of gps away from the player)
config.followUpdateRate = 1000 -- time to update the position of the tracked GPS
-- if the job value is nil, anyone can use that item
-- maxDistance: If it's nil, the distance is unlimited. If you type a value, the player can see the gps of the players within the value you type.
config.items = {
{
item = "pd_gps",
jobs = { "police" },
maxDistance = nil,
defaultColor = 3,
canSetCarGps = true,
blip = {
scale = {
dead = 0.5,
normal = 0.5,
car = 0.8,
heli = 0.8,
boat = 0.8,
plane = 0.8,
},
sprite = { -- https://docs.fivem.net/docs/game-references/blips/
dead = 274,
normal = 1,
car = 225,
heli = 422,
boat = 427,
plane = 423,
}
},
colorList = {
{ color = 46, uiColor = "rgb(236, 240, 41)" }, -- Default (Gold)
{ color = 1, uiColor = "rgb(224, 50, 50)" }, -- red
{ color = 2, uiColor = "rgb(113, 203, 113)" }, -- green
{ color = 3, uiColor = "rgb(93, 182, 229)" }, -- blue
{ color = 7, uiColor = "rgb(156, 110, 175)" }, -- Violet
{ color = 47, uiColor = "rgb(255, 154, 24)" }, -- Orange
}
},
{
item = "gps",
job = nil,
maxDistance = 200,
defaultColor = 46,
canSetCarGps = false,
blip = {
scale = {
dead = 0.5,
normal = 0.5,
car = 0.8,
heli = 0.8,
boat = 0.8,
plane = 0.8,
},
sprite = {
dead = 274,
normal = 1,
car = 225,
heli = 422,
boat = 427,
plane = 423,
}
},
colorList = {
{ color = 46, uiColor = "rgb(236, 240, 41)" }, -- Default (Gold)
{ color = 1, uiColor = "rgb(224, 50, 50)" }, -- red
}
},
}
config.langs = {} -- don't change
Last updated