Config Files
Framework functions and other necessary files are also source available.
Config Files
Config = {}
Config.Framework = "auto" -- "auto", "esx", "qbcore", "qbox" or "custom"
Config.Inventory = "auto" -- "auto", "esx", "ox_inventory", "qb-inventory", "core_inventory", "qs-inventory", "tgiann-inventory" or "codem-inventory"
Config.Locale = "en"
Config.UploadMethod = "auto" -- "auto", "Fivemanage", "Qbox" or "LBPresigned"
Config.TargetSystem = "auto" -- "auto", "qtarget" or "qb-target"
Config.NotificationSystem = "auto"
Config.MenuSystem = "auto"
Config.HelpTextStyle = "auto"
Config.DispatchSystem = "auto"
Config.CompanyMoneySystem = "auto"
Config.MaxGraffities = 10 -- max amount of graffitis a player can have
Config.MaxVisibleGraffities = 10 -- max amount of graffitis that can be visible at once
Config.GraffitiSprayingDist = 7.5 -- distance at which graffiti can sprayed
Config.RenderDistance = 100.0 -- distance at which graffiti will be rendered
Config.Quality = 0.5 -- image quality 0.0-1.0
-- if you have performance issue make sure to limit then sizes of your graffities
Config.MaxHeight = 500 -- max height of graffiti (in pixels)
Config.MaxWidth = 500 -- max width of graffiti (in pixels)
Config.MinFillPercentage = 5 -- min % of non transparent to create a graffiti
Config.IntegrateElectusGangs = false
Config.ProgressToAdd = 10 -- progress to add to zone capture when graffiti is sprayed
Config.RemoveSprayAfterUse = true -- if true, spray can will be removed after use
Config.RemoveWipeAfterUse = true -- if true, wipe will be removed after use
Config.CallPolice = true -- if true, police will be called when a graffiti is sprayed
Config.HidePlayersWhenSpraying = true -- if true, players will be hidden when spraying, this way there you can't be blocked when spraying (regardless other players will see your spraying)
Config.Scale = {
min = 0.5, -- minimum scale of graffiti
max = 5.0, -- maximum scale of graffiti
}
Config.KeyActions = { -- if you change KeyActions the Key must also be avaliable in Keys table.
place = "E",
up = "UP",
down = "DOWN",
left = "LEFT",
right = "RIGHT",
cancel = "BACKSPACE",
spray = "LEFTMOUSE",
wipe = "LEFTMOUSE",
confirmWipe = "E",
}
Config.UrlAllowlist = {
enabled = false,
allowSameOrigin = true, -- if enabled, it will allow already created graffitis to be used in graffiti creator
urls = { -- add urls to this list to allow them to be used in graffiti
},
}
local function IsStartedOrStarting(resource)
local state = GetResourceState(resource)
return state == "started" or state == "starting"
end
if Config.TargetSystem == "ox_target" then
Config.TargetSystem = "qtarget"
elseif Config.TargetSystem == "auto" then
if IsStartedOrStarting("qtarget") then
Config.TargetSystem = "qtarget"
elseif IsStartedOrStarting("qb-target") then
Config.TargetSystem = "qb-target"
else
Config.TargetSystem = "qtarget"
end
end
local wrapperInventories = {
core = "core_inventory",
qb = "qb-inventory",
qs = "qs-inventory",
tgiann = "tgiann-inventory",
codem = "codem-inventory",
}
Config.Inventory = wrapperInventories[Config.Inventory] or Config.Inventory
Config.Target = Config.TargetSystem