⚙️Configuration
Detailed explanation of the config file to adapt the resource to your player needs.
The config.lua
Config = {}
Config.Framework = "qb" -- "qb"
Config.Inventory = "qb" -- "ps", "qb", "ox", "qs"
Config.FrameworkPseudo = 'qb-core'
Config.Target = "qb" -- ox !!!!!!!!! IMPORTANT
Config.UseInteract = true
Config.Img = 'qb-inventory/html/images/'
Config.Tax = 0.08;
Config.NPCs = {
{
img = 'https://i.ibb.co/grX3Qxm/npc.png',
ped = 'a_m_m_hillbilly_02',
anim = 'CODE_HUMAN_MEDIC_TIME_OF_DEATH',
coords = vector4(574.08, 133.01, 98.47, 249.26),
job = "all", -- { ["police"] = 0, ["ambulance"] = 0} if you are using target
gang = "all", -- { ["ballas"] = 2, ["thelostmc"] = 0} if you are using target
groups = "all", -- { ["police"] = 2, ["ambulance"] = 0} if you are using intearaction
firstname = 'RUFIS',
lastname = 'MDRID',
rep = 0,
mission = 'Garbage job',
text = 'Hey there, always on the lookout for a side gig, huh? I have got this idea that is a bit out there, but trust me, it pays off. Imagine sneaking onto rooftops, nabbing those AC units, and turning them into a sweet wad of cash, quick and discreet. what do you say? Insterested in a profitable adventure ?',
buttons = {
{
text= 'I want to work',
rep = 0,
answer ='Ready for a day of hard work?',
buttons={{
text = 'yes',
shop =false,
rep = 0,
action= {
isServer= false,
event= 'zat-roofrunning:client:StartWorking',
data= {}
}
},
{
text = 'Leave Conversation',
shop =false,
rep = 0,
action= {
isServer= false,
event= 'zat-dialog:client:HideUi',
data= {}
}
}
}
},
{
text = 'Leave Conversation',
rep = 0,
shop =false,
action= {
isServer= false,
event= 'zat-dialog:client:HideUi',
data= {}
}
},
{
text = 'Join/Create Group',
rep = 0,
shop =false,
action= {
isServer= false,
event= 'zat-groups:client:OpenUi',
data= {}
}
},
{
text = 'Open Shop',
rep = 0,
shop = true,
answer = null,
},
},
items={
{
name = 'screwdriver',
label = 'Screwdriver',
image = 'nui://'..Config.Img..'screwdriver.png',
type = 'Equipement',
price = 1000,
rep = 0,
amount = 0, -- keep it 0
info = {}
},
}
},
}
Last updated