1
0
Fork 0
forked from Simnation/Main
Main/resources/[jobs]/[crime]/nordi_containerheist/config.lua

197 lines
6.6 KiB
Lua
Raw Normal View History

2025-07-20 03:56:42 +02:00
Config = {}
2025-07-20 02:41:44 +02:00
-- General Settings
2025-07-20 03:59:03 +02:00
Config.Debug = true -- Set to true for debug prints
2025-07-20 03:54:06 +02:00
Config.CooldownTime = 30 -- Minutes between heists (per player)
Config.GlobalCooldown = 15 -- Minutes between heists (server-wide)
Config.PoliceRequired = 2 -- Minimum police required
2025-07-20 03:18:58 +02:00
Config.PoliceJobs = {
"police", -- Regular police
"marshal", -- Marshal service
2025-07-20 03:54:06 +02:00
"sheriff" -- Sheriff department
2025-07-20 03:18:58 +02:00
}
2025-07-20 02:41:44 +02:00
-- Required Items
Config.RequiredItems = {
flex = {
2025-07-20 02:53:21 +02:00
name = "anglegrinder", -- Item name in your inventory
label = "Flex", -- Display name
2025-07-20 02:41:44 +02:00
amount = 1, -- How many required
remove = false, -- Whether to remove the item after use
durability = false, -- Whether the item has durability
durabilityDecrease = 20, -- How much durability to decrease per use (%)
},
-- You can add more required items here
}
-- Notification Settings
Config.Notifications = {
title = "Container Heist",
policeTitle = "DISPATCH ALERT",
success = "You successfully broke into the container!",
failed = "You failed to break into the container!",
noTools = "You don't have the required tools!",
cooldown = "You need to wait before attempting another heist!",
globalCooldown = "This type of heist is currently on cooldown!",
notEnoughPolice = "Not enough police in the city!",
policeMessage = "Container robbery in progress at %s",
alreadyRobbed = "This container has already been robbed recently!",
2025-07-20 17:07:46 +02:00
notInZone = "You need to be in a container area to use this tool!",
2025-07-20 02:41:44 +02:00
}
-- Blip Settings
Config.Blip = {
sprite = 67,
color = 1,
scale = 0.8,
2025-07-20 03:54:06 +02:00
label = "Container Robbery",
2025-07-20 02:41:44 +02:00
duration = 180, -- seconds
flash = true,
}
2025-07-20 03:54:06 +02:00
-- Container Types (for rewards and animations)
Config.ContainerTypes = {
-- Regular shipping containers
shipping = {
2025-07-20 03:18:58 +02:00
label = "Shipping Container",
animation = {
dict = "amb@world_human_welding@male@base",
name = "base",
flag = 1,
2025-07-20 03:54:06 +02:00
duration = 30000, -- milliseconds
2025-07-20 03:18:58 +02:00
},
rewards = {
2025-07-20 03:54:06 +02:00
-- Each reward has a chance (total should be <= 100)
2025-07-20 03:18:58 +02:00
{item = "phone", label = "Phone", min = 1, max = 3, chance = 30},
{item = "rolex", label = "Rolex Watch", min = 1, max = 2, chance = 20},
{item = "goldchain", label = "Gold Chain", min = 1, max = 3, chance = 25},
{item = "diamond", label = "Diamond", min = 1, max = 1, chance = 5},
{item = "laptop", label = "Laptop", min = 1, max = 1, chance = 15},
2025-07-20 03:54:06 +02:00
-- Cash reward
2025-07-20 03:18:58 +02:00
{item = "cash", label = "Cash", min = 1000, max = 5000, chance = 40},
},
policeAlert = true,
},
2025-07-20 03:54:06 +02:00
-- Weapons container
weapons = {
label = "Weapons Container",
2025-07-20 03:18:58 +02:00
animation = {
dict = "amb@world_human_welding@male@base",
name = "base",
flag = 1,
duration = 30000,
},
rewards = {
2025-07-20 03:54:06 +02:00
{item = "weapon_pistol", label = "Pistol", min = 1, max = 1, chance = 10},
{item = "pistol_ammo", label = "Pistol Ammo", min = 10, max = 30, chance = 25},
{item = "armor", label = "Body Armor", min = 1, max = 2, chance = 20},
{item = "weapon_knife", label = "Knife", min = 1, max = 1, chance = 30},
{item = "cash", label = "Cash", min = 2000, max = 7000, chance = 35},
2025-07-20 03:18:58 +02:00
},
policeAlert = true,
},
2025-07-20 03:54:06 +02:00
-- Cargo trailer
cargo = {
2025-07-20 03:18:58 +02:00
label = "Cargo Trailer",
animation = {
dict = "amb@world_human_welding@male@base",
name = "base",
flag = 1,
duration = 45000,
},
rewards = {
{item = "electronics", label = "Electronics", min = 3, max = 8, chance = 40},
{item = "plastic", label = "Plastic", min = 10, max = 20, chance = 60},
{item = "aluminum", label = "Aluminum", min = 10, max = 20, chance = 50},
{item = "copper", label = "Copper", min = 5, max = 15, chance = 30},
{item = "cash", label = "Cash", min = 3000, max = 10000, chance = 25},
},
policeAlert = true,
},
2025-07-20 03:54:06 +02:00
-- Food trailer
food = {
label = "Food Trailer",
2025-07-20 03:18:58 +02:00
animation = {
dict = "amb@world_human_welding@male@base",
name = "base",
flag = 1,
duration = 40000,
},
rewards = {
{item = "food", label = "Food", min = 5, max = 15, chance = 70},
{item = "water", label = "Water", min = 5, max = 15, chance = 70},
{item = "firstaid", label = "First Aid Kit", min = 1, max = 3, chance = 30},
{item = "cash", label = "Cash", min = 500, max = 3000, chance = 20},
},
policeAlert = false,
},
2025-07-20 03:54:06 +02:00
}
2025-07-20 17:07:46 +02:00
-- Container Zones (defined by 4 points)
Config.ContainerZones = {
2025-07-20 03:54:06 +02:00
-- Port area shipping containers
2025-07-20 03:18:58 +02:00
{
2025-07-20 17:07:46 +02:00
id = "port_containers",
2025-07-20 03:54:06 +02:00
type = "shipping", -- References the container type above for rewards
2025-07-20 17:07:46 +02:00
label = "Port Containers",
points = {
2025-07-20 17:10:04 +02:00
vector3(992.49, -3048.93, 5.9), -- Point 1
vector3(991.28, -3018.97, 5.9), -- Point 2
vector3(1063.13, -3016.99, 5.9), -- Point 3
vector3(1061.97, -3050.63, 5.9) -- Point 4
2025-07-20 17:07:46 +02:00
},
minZ = 4.0,
maxZ = 15.0,
2025-07-20 03:18:58 +02:00
},
2025-07-20 03:54:06 +02:00
-- Weapons containers
2025-07-20 03:18:58 +02:00
{
2025-07-20 17:07:46 +02:00
id = "weapons_containers",
2025-07-20 03:54:06 +02:00
type = "weapons",
2025-07-20 17:07:46 +02:00
label = "Weapons Containers",
points = {
vector3(905.45, -3200.67, 5.90), -- Point 1
vector3(905.45, -3190.67, 5.90), -- Point 2
vector3(895.45, -3190.67, 5.90), -- Point 3
vector3(895.45, -3200.67, 5.90) -- Point 4
},
minZ = 4.0,
maxZ = 15.0,
2025-07-20 03:18:58 +02:00
},
2025-07-20 03:54:06 +02:00
-- Cargo trailers
2025-07-20 03:18:58 +02:00
{
2025-07-20 17:07:46 +02:00
id = "cargo_trailers",
2025-07-20 03:54:06 +02:00
type = "cargo",
2025-07-20 17:07:46 +02:00
label = "Cargo Trailers",
points = {
vector3(825.34, -3125.45, 5.90), -- Point 1
vector3(825.34, -3115.45, 5.90), -- Point 2
vector3(815.34, -3115.45, 5.90), -- Point 3
vector3(815.34, -3125.45, 5.90) -- Point 4
},
minZ = 4.0,
maxZ = 15.0,
2025-07-20 03:18:58 +02:00
},
2025-07-20 03:54:06 +02:00
-- Food trailers
2025-07-20 03:18:58 +02:00
{
2025-07-20 17:07:46 +02:00
id = "food_trailers",
2025-07-20 03:54:06 +02:00
type = "food",
2025-07-20 17:07:46 +02:00
label = "Food Trailers",
points = {
vector3(765.23, -3165.34, 5.90), -- Point 1
vector3(765.23, -3155.34, 5.90), -- Point 2
vector3(755.23, -3155.34, 5.90), -- Point 3
vector3(755.23, -3165.34, 5.90) -- Point 4
},
minZ = 4.0,
maxZ = 15.0,
2025-07-20 02:41:44 +02:00
},
2025-07-20 03:54:06 +02:00
2025-07-20 17:07:46 +02:00
-- Add more zones as needed
2025-07-20 02:41:44 +02:00
}