Configurations
Config = {}
--[[
▀█▀ █▀▀ █▀▀ ▀█ █▄█ █▀▀ █▀█ █▀█ █▀▀ █▀▄ █▀▀ █░█ █▀▀ █░░ █▀█ █▀█ █▀▄▀█ █▀▀ █▄░█ ▀█▀
░█░ ██▄ ██▄ █▄ ░█░ █▄▄ █▄█ █▀▄ ██▄ █▄▀ ██▄ ▀▄▀ ██▄ █▄▄ █▄█ █▀▀ █░▀░█ ██▄ █░▀█ ░█░
]]
Config.Debug = false -- Set to true to enable debug mode
Config.TargetResource = 'ox_target' -- supported: ox_target, qb-target
Config.InventoryResource = 'ox_inventory' -- supported: ox_inventory, qb-inventory, ps-inventory, qs-inventory
Config.UseTarget = true -- Set to false to disable the target system
Config.ChanceToBreakRequiredItems = 50 -- Chance to break the required items
Config.RewardTime = 0.5 -- Wait time before the reward is given to the player (set to false to disable)
Config.RewardClaimDistance = 50.0 -- Distance to claim the reward (This is difference from the traphouse location redzone_radius)
Config.RewardTimer3DDrawText = false -- Set to false to disable the reward time draw text
Config.GlobalNotifyDelay = 5000 -- Delay to notify all players about the traphouse being robbed
Config.RequiredCops = { -- Set to false to disable the required cops to rob the traphouse
enabled = false,
min_police = 1,
}
Config.RestrictTime = { -- Set to false to disable the time restriction
enabled = false,
start_time = 1,
end_time = 12,
}
Config.Interactions = {
ContextMenuButton = {
title = "Rob Traphouse",
icon = "hand",
},
EyeTarget = {
icon = "fas fa-lock",
label = "Attempt to rob traphouse",
distance = 1.0
}
}
Config.RequiredItems = { -- Required items to rob the traphouse
{
item = 'lockpick',
label = "Lockpick",
is_advance = false,
amount = 1,
},
{
item = 'advancedlockpick',
label = "Advanced Lockpick",
is_advance = true,
amount = 1,
}, -- Add more items if needed
}
Config.RewardConfig = { -- Reward configuration
randomize_rewards = true,
min_rewards = 1,
max_rewards = 5,
}
Config.RewardTypes = { -- Reward types
["normal"] = {
{ item = 'phone', min = 1, max = 2 },
{ item = 'water', min = 1, max = 1 },
{ item = 'armour', min = 1, max = 1 },
{ item = 'scrapmetal', min = 1, max = 2 },
{ item = 'advancedlockpick', min = 1, max = 2 },
{ item = 'lockpick', min = 1, max = 2 },
},
["advanced"] = {
{ item = 'water', min = 3, max = 6 },
{ item = 'armour', min = 2, max = 3 },
{ item = 'scrapmetal', min = 2, max = 4 },
{ item = 'advancedlockpick', min = 2, max = 4 },
{ item = 'lockpick', min = 2, max = 3 },
}, -- Add more reward types if needed
}
Config.TrapHouseLocation = { -- Traphouse locations
["traphouse1"] = {
coords = vector4(-595.04, -1653.04, 20.63, 330), -- Coordinate of the traphouse
reset_time = 1, -- After robbed the traphouse will reset in this time (in minutes)
is_opened = false, -- DO NOT CHANGE THIS VALUE MANUALLY (This is used to check if the traphouse is robbed or not)
is_busy = false, -- DO NOT CHANGE THIS VALUE MANUALLY (This is used to check if the traphouse is busy or not)
reward_type = "normal", -- Reward type for the traphouse
blip = { -- Blip configuration
enabled = true, -- Set to false to disable the blip
show_area = true, -- Set to false to disable the area blip (redzone)
show_warning = true, -- Set to false to disable the warning text ui (This is showing if the player is inside the redzone)
sprite = 0, -- Blip sprite (https://docs.fivem.net/docs/game-references/blips/) set to 0 to disable the sprite
color = 1,
redzone_radius = 100.0, -- Redzone radius for the traphouse
},
},
}
Config.Minigames = function(is_advance) -- Minigame configuration
local success = nil
if is_advance then
success = lib.skillCheck({'easy', 'easy'}, {'e'})
else
success = lib.skillCheck({'easy', 'easy', 'hard'}, {'e'})
end
return success
end
Config.Notification = function(message, type, time, is_server, src)
local Core, Framework = GetCore()
if is_server then
if Framework == "esx" then
TriggerClientEvent("esx:showNotification", src, message)
else
TriggerClientEvent('QBCore:Notify', src, message, type, time)
end
else
if Framework == "esx" then
Core.ShowNotification(message, type, time)
else
Core.Functions.Notify(message, type, time)
end
end
end
DiscordConfig = {
["webhook"] = "", -- Your webhook here
["title"] = "Illegal Traphouse System",
["thumbnail"] = "https://i.imgur.com/6s82WUZ.png",
["color"] = "3447003" -- HEX
}
Last updated