72 lines
4.1 KiB
Lua
72 lines
4.1 KiB
Lua
EXTERNAL_EVENTS_NAMES = {
|
|
["esx:getSharedObject"] = nil, -- This is nil because it will be found automatically, change it to your one ONLY in the case it can't be found
|
|
}
|
|
|
|
INTERACTION_POINTS_REFRESH = 1000
|
|
|
|
--[[
|
|
You can define the images folder here, for example you can use your inventory images folder. Note, the images MUST be .webp or .png
|
|
Examples:
|
|
IMAGES_PATH = "nui://ox_inventory/web/build/images"
|
|
IMAGES_PATH = "nui://ox_inventory/web/images"
|
|
IMAGES_PATH = "nui://qb-inventory/html/images"
|
|
]]
|
|
IMAGES_PATH = "nui://shops_creator/html/images"
|
|
|
|
-- Here you can define filters for the shops
|
|
SHOP_FILTERS = {
|
|
{
|
|
label = "Food",
|
|
items = {
|
|
"bread", "water", "chocolate", "sandwich", "hamburger", "cupcake", "donut", "tacos", "kebab",
|
|
"pdonut", "chips", "soda", "coffee", "tea", "icetea", "orangejuice", "gocagola", "redgull",
|
|
"lemonlimonade", "vodka", "whisky", "rhum", "tequila", "martini", "jager", "mojito", "limonade",
|
|
"jusfruit", "jagerbomb", "vodkaenergy", "whiskycoca", "rhumfruit", "beer", "whiskey"
|
|
}
|
|
},
|
|
|
|
{
|
|
label = "Weapons",
|
|
items = {
|
|
"weapon_dagger", "weapon_bat", "weapon_bottle", "weapon_crowbar", "weapon_unarmed", "weapon_flashlight", "weapon_golfclub", "weapon_hammer", "weapon_hatchet",
|
|
"weapon_knuckle", "weapon_knife", "weapon_machete", "weapon_switchblade", "weapon_nightstick", "weapon_wrench", "weapon_battleaxe", "weapon_poolcue",
|
|
"weapon_stone_hatchet", "weapon_pistol", "weapon_pistol_mk2", "weapon_combatpistol", "weapon_appistol", "weapon_stungun", "weapon_pistol50",
|
|
"weapon_snspistol", "weapon_snspistol_mk2", "weapon_heavypistol", "weapon_vintagepistol", "weapon_flaregun", "weapon_marksmanpistol",
|
|
"weapon_revolver", "weapon_revolver_mk2", "weapon_doubleaction", "weapon_raypistol", "weapon_ceramicpistol", "weapon_navyrevolver",
|
|
"weapon_microsmg", "weapon_smg", "weapon_smg_mk2", "weapon_assaultsmg", "weapon_combatpdw", "weapon_machinepistol", "weapon_minismg",
|
|
"weapon_raycarbine", "weapon_pumpshotgun", "weapon_pumpshotgun_mk2", "weapon_sawnoffshotgun", "weapon_assaultshotgun",
|
|
"weapon_bullpupshotgun", "weapon_musket", "weapon_heavyshotgun", "weapon_dbshotgun", "weapon_autoshotgun", "weapon_assaultrifle",
|
|
"weapon_assaultrifle_mk2", "weapon_carbinerifle", "weapon_carbinerifle_mk2", "weapon_advancedrifle", "weapon_specialcarbine",
|
|
"weapon_specialcarbine_mk2", "weapon_bullpuprifle", "weapon_bullpuprifle_mk2", "weapon_compactrifle", "weapon_mg", "weapon_combatmg",
|
|
"weapon_combatmg_mk2", "weapon_gusenberg", "weapon_sniperrifle", "weapon_heavysniper", "weapon_heavysniper_mk2", "weapon_marksmanrifle",
|
|
"weapon_marksmanrifle_mk2", "weapon_rpg", "weapon_grenadelauncher", "weapon_grenadelauncher_smoke", "weapon_minigun", "weapon_firework",
|
|
"weapon_railgun", "weapon_hominglauncher", "weapon_compactlauncher", "weapon_rayminigun", "weapon_grenade", "weapon_bzgas", "weapon_smokegrenade",
|
|
"weapon_flare", "weapon_molotov", "weapon_stickybomb", "weapon_proxmine", "weapon_snowball", "weapon_pipebomb", "weapon_ball", "weapon_petrolcan",
|
|
"weapon_fireextinguisher", "weapon_parachute", "weapon_hazardcan",
|
|
}
|
|
}
|
|
}
|
|
|
|
--[[
|
|
You can edit this function if you want to add second jobs or anything like that (editing this function is down to you)
|
|
If you edit this, you WILL have also to edit the function in sv_integrations.lua file
|
|
]]
|
|
function isAllowedForAdminShop(allowedJobs)
|
|
if(not allowedJobs) then return true end
|
|
|
|
local playerJob = Framework.getPlayerJob()
|
|
|
|
if(allowedJobs[playerJob] == true) then
|
|
return true
|
|
elseif(allowedJobs[playerJob]) then
|
|
local playerJobGrade = tostring( Framework.getPlayerJobGrade() )
|
|
|
|
return allowedJobs[playerJob] and allowedJobs[playerJob][playerJobGrade]
|
|
else
|
|
return false
|
|
end
|
|
end
|
|
|
|
-- How many seconds the blip for police alerts will remain in the map
|
|
BLIP_TIME_AFTER_POLICE_ALERT = 120
|