Config Preview
Version 1.0 Original Release
Config = Config or {}
Config.AutoCreateTable = true -- Table will auto insert into database on first start of script (can turn off after first start) or set to false and you can manually import the table from the sql file
Config.ItemInfo = {
AutoAdd = true, -- NEEDS TO STAY ON OR ALL ITEMS WILL BE REMOVED ON SERVER RESTART
ItemDetails = { -- INFO FOR ITEM IF WANTING TO HAVE AN INVENTORY ITEM TO ACCESS THE TABLET
['work_tablet'] = {
['name'] = 'work_tablet',
['label'] = 'Work Tablet',
['weight'] = 0,
['type'] = 'item',
['image'] = 'work_tablet.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['description'] = 'Tablet to manage your work life',
}
}
} -- IF USING AUTO ADD NO NEED TO PUT THE ITEM INTO qb-core/shared/items.lua
-- JUST NEED TO ADD THE IMAGE INTO qb-inventory/html/images
Config.Info = {
useCommand = true, -- IF COMMAND IS ACTIVE OR NOT TO OPEN THE TABLET
Command = 'work', -- COMMAND TO OPEN TABLET IF ACTIVE
BottomLabel = 'CHANGE ME', -- BOTTOM OF TABLET LABEL CAN LEAVE EMPTY IF YOU WANT TO AS ''
jobSecActive = true, -- REMOVED THE BUTTON FROM THE TABLET
gangSecActive = true, -- REMOVED THE BUTTON FROM THE TABLET
jobManSecActive = true, -- REMOVED THE BUTTON FROM THE TABLET
gangManSecActive = true, -- REMOVED THE BUTTON FROM THE TABLET
maxJob = 5, -- MAX JOB AMOUNT CAN ONLY BE 5
dutySwitch = true, -- ALLOWS FOR THE DUTY SWITCH ON LEFT OF TABLET TO BE REMOVED IF SET TO FALSE
}
Config.JobManagement = {
PlySearchRadius = 15, -- The radius to search for a player for both hiring or transfering money to a person
TransferToPlayer = 'cash', -- ('cash' or 'bank') -- Where money is sent to if a person is transfered money from job managegment
}
Config.JobsStorage = {
stash_weight = 4000, -- Weight max in pounds for job boss storages
stash_slots = 25 -- Max slots for job boss storages
}
-- USE A SET DISTANCE FROM THE COORDS TO ALLOW FOR JOB STASH TO BE ACCESSED
-- ONLY BOSS LEVEL EMPLOYEES CAN OPEN THESE LOCATIONS
-- Currently All like Job locations will open the same inventory if the job name is the same
-- Example: police1 and police2 locations will be that same inventory items when opened
Config.JobStorageDistance = {
active = false, -- True/False on if this section is active
jobs = {
['police1'] = { -- Name of job for them to access the zone
active = false, -- True/False on if this zone is active Allows for zones to be removed without having to delete or comment it out
coords = vector3(-836.2496, -1282.8676, 5.0002), -- The location from where the access distance starts from
distance = 20 -- The distance for how far away from point above the storage can still be accesses
},
['police2'] = {
active = false,
coords = vector3(-789.0009, -1308.2781, 5.0004),
distance = 20
},
['taxi'] = {
active = false,
coords = vector3(-789.0009, -1308.2781, 5.0004),
distance = 20
},
}
}
-- USE A CIRCLE POLY IN/OUT METHOD TO ALLOW FOR JOB STASH TO BE ACCESSED
-- ONLY BOSS LEVEL EMPLOYEES CAN OPEN THESE LOCATIONS
-- Currently All like Job Zones will open the same inventory if the job name is the same
-- Example: police1 and police2 zones will be that same inventory items when opened
Config.JobStoragePolys = {
active = false, -- true/false on if this section is active
jobs = {
['police1'] = { -- Name of job for them to access the zone
circleZoneActive = false, -- true/false on if this zone is active Allows for zones to be removed without having to delete or comment it out
debugPoly = false, -- Can debug each zone indiviually when placing the zone
circleCenter = vector4(-836.2496, -1282.8676, 5.0002, 273.7577), -- Center of the zone
circleRadius = 10 -- Radius from center to control how big the zone is that allows access
},
['police2'] = {
circleZoneActive = false,
debugPoly = false,
circleCenter = vector4(-789.0009, -1308.2781, 5.0004, 264.0152),
circleRadius = 10
},
['taxi'] = {
circleZoneActive = false,
debugPoly = false,
circleCenter = vector4(-796.3325, -1282.0740, 5.0004, 240.5518),
circleRadius = 10
},
['firefighter'] = {
circleZoneActive = false,
debugPoly = false,
circleCenter = vector4(-796.3325, -1282.0740, 5.0004, 240.5518),
circleRadius = 10
}
}
}
Config.GangManagement = {
PlySearchRadius = 15, -- The radius to search for a player for both hiring or transfering money to a person
TransferToPlayer = 'cash', -- ('cash' or 'bank') -- Where money is sent to if a person is transfered money from gang managegment
}
Config.GangStorage = {
stash_weight = 4000, -- Weight max in pounds for gang boss storages
stash_slots = 25, -- Max slots for gang boss storages
}
-- USE A SET DISTANCE FROM THE COORDS TO ALLOW FOR GANG STASH TO BE ACCESSED
Config.GangStorageDistance = {
active = false, -- True/False on if this section is active
gangs = {
['ballas1'] = { -- Name of gang for them to access the zone
active = false, -- True/False on if this zone is active Allows for zones to be removed without having to delete or comment it out
coords = vector3(-836.2496, -1282.8676, 5.0002), -- The location from where the access distance starts from
distance = 20 -- The distance for how far away from point above the storage can still be accesses
},
['ballas2'] = {
active = false,
coords = vector3(-789.0009, -1308.2781, 5.0004),
distance = 20
}
}
}
-- USE A CIRCLE POLY IN/OUT METHOD TO ALLOW FOR GANG STASH TO BE ACCESSED
-- ONLY BOSS LEVEL MEMBERS CAN OPEN THESE LOCATIONS
-- Currently All like Gang Zones will open the same inventory if the gang name is the same
-- Example: ballas1 and ballas2 zones will be that same inventory items when opened
Config.GangStoragePolys = {
active = false, -- true/false on if this section is active
gangs = {
['ballas1'] = { -- Name of gang for them to access the zone
circleZoneActive = false, -- true/false on if this zone is active Allows for zones to be removed without having to delete or comment it out
debugPoly = false, -- Can debug each zone indiviually when placing the zone
circleCenter = vector4(-836.2496, -1282.8676, 5.0002, 273.7577), -- Center of the zone
circleRadius = 10 -- Radius from center to control how big the zone is that allows access
},
['vagos'] = {
circleZoneActive = false,
debugPoly = false,
circleCenter = vector4(-789.0009, -1308.2781, 5.0004, 264.0152),
circleRadius = 10
},
['lostmc'] = {
circleZoneActive = false,
debugPoly = false,
circleCenter = vector4(-796.3325, -1282.0740, 5.0004, 240.5518),
circleRadius = 10
}
}
}
Last updated