Configuration
Available configuration for resource.
CFG = {}
CFG.FRAMEWORK = 'qb' -- 'qb', 'esx', 'qbx'
CFG.DISPATCH = 'custom' -- 'ps-dispatch', 'cd_dispatch', 'custom' in client_editable.lua
CFG.INVENTORY = 'qb' -- 'qb', 'esx', 'ox', 'qs'
CFG.NOTIFY = 'ox' -- 'qb', 'esx', 'default'
CFG.PROGRESS_BAR = 'ox' -- 'qb', 'ox' or false
CFG.MENU = {
type = 'ox', -- 'ox', 'menuv'
-- 'menuv' uses: topright (default), topleft, bottomright, bottomleft
-- 'ox' uses: top-right (default), top-left, bottom-right, bottom-left
pos = 'top-right',
-- these settings are only for MenuV
size = 'size-125', -- menu size
colour = { r = 250, g = 20, b = 60 }, -- https://www.rapidtables.com/web/color/RGB_Color.html
banner = 'none', -- 'none', 'default', 'default_native'
banner_text = false, -- 'TEXT'
}
CFG.SETTINGS = {
action = {
timer = {from = 3, to = 6},
items = {
--[[
component name, random item from list, and random amount of item
]]
door = {item = {'iron', 'plastic'}, from = 1, to = 5},
hood = {item = {'iron', 'plastic'}, from = 1, to = 5},
trunk = {item = {'iron', 'plastic'}, from = 1, to = 5},
wheel = {item = {'iron'}, from = 1, to = 5},
tyre = {item = {'plastic'}, from = 1, to = 5},
window = {item = {'glass'}, from = 1, to = 5},
neon = {item = {'plastic'}, from = 1, to = 5},
xeon = {item = {'glass'}, from = 1, to = 5},
engine = {item = {'steel'}, from = 1, to = 5}
}
},
menu_trigger = {
command = 'removeparts', -- if you want to disable command set it to -> false
required_item = false, -- ex. 'toolkit', required item for menu
-- bind menu on certain key
bind = false -- example 'K' or 'F1' etc..
},
alert = { -- police alert
enable = true,
cooldown = 60 -- seconds
},
-- if you want it for everyone just make it looks like this -> jobs = {}
jobs = {
['mechanic'] = true,
['police'] = true,
},
blips = {
--[[
if you don't want any blips
just make it look like this -> blips = {}
]]
[1] = {
coords = vector3(1752.9, 3322.61, 41.19), -- x y z
label = "Scrapyard", sprite = 380, color = 11, scale = 1.0
},
},
scrap = {
garage_table = {
['qb'] = 'player_vehicles',
['esx'] = 'owned_vehicles',
['qbx'] = 'player_vehicles'
},
remove_vehicle_from_database = true, -- -- if vehicle got scrapped and is owned, it will be removed from database
using_cd_garage = false, -- set it to true, if you using cd_garage
-- vehicles with certain plates will be not deleted from database
whitelist = {
enabled = false, -- true/false
-- 'string' checks for whole plate
-- 'word' checks for word in the plate
-- string = {}, word = {}
string = {
['06GX0586'] = true,
-- more
},
word = {
['VIP'] = true,
-- more
}
},
-- where vehicles disappear
points = {
vector3(1752.9, 3322.61, 40.19), -- x y z
-- add new locations here
},
rewards = {
-- you can add any items
-- 'money' will give just regular cash
-- item, chance to drop, randomised amount
[1] = {name = 'iron', chance = 100, from = 10, to = 15},
-- [1] = {name = 'money', chance = 100, from = 150, to = 1000},
-- [2] = {name = 'markedbills', chance = 100, from = 10, to = 20},
},
reward_limit = 1, -- it will lock scrap rewards to X item/s
}
}
CFG.LANG = {
not_detected = "Component wasn't detected",
control_failed = "Failed to get control of vehicle, reenter vehicle to get full control",
scrap_action = 'Press ~INPUT_PICKUP~ scrap vehicle in the circle.',
menu_header = 'Remove Parts',
missing_item = 'You missing required item.',
removing_parts = 'Removing Parts...',
doors = 'Doors',
hood = 'Hood',
trunk = 'Trunk',
wheels = 'Wheels',
tyres = 'Tyres',
windows = 'Windows',
neons = 'Neons',
xeons = 'Xeons',
engine = 'Engine'
}
Last updated