Configuration
All Wasabi Scripts contain various editable and unobscured files containing, exports, client and server functions, configuration methods and more.
Main Configuration
This is the main configuration settings. An example of the default FiveM map can be found in "Map Configuration".
-----------------For support, scripts, and more----------------
--------------- https://discord.gg/wasabiscripts -------------
---------------------------------------------------------------
Config = {}
Config.Robberies = {}
Config.CheckForUpdates = true -- Check for updates (Recommended)
Config.ImgDirectory = 'ox_inventory/web/images/'
-- Locale Options are
-- 'en' (English)
-- 'fr' (French)
-- 'cn' (Chinese Simplified)
-- 'tw' (Chinese Traditional)
-- 'de' (German)
-- 'it' (Italian)
-- 'jp' (Japanese)
-- 'ko' (Korean)
-- 'pl' (Polish)
-- 'pt' (Portuguese)
-- 'es' (Spanish)
-- 'hi' (Hindi)
-- 'nl' (Dutch)
-- 'da' (Danish)
-- 'cs' (Czech)
-- If you would like us to add a language, join our discord and create a ticket!
-- All locale strings can be found in /config/locales/
Config.Locale = 'en'
Config.Cooldown = 60 * 60 * 1 -- Cooldown in seconds
Config.AlwaysLocked = true -- If true, the doors will be locked all the time, otherwise only when the robbery started
Config.ThermiteTime = 5000 -- Time in ms to burn the door after all animations are done
Config.C4Time = 5000 -- Time in ms to detonate the C4 after placement animations are done
Config.MinimumCops = { -- Minimum amount of cops required to start the robbery
jobs = { 'police', },
amount = 1,
}
Config.End = {
death = { -- End robbery if player dies
enabled = true
},
distance = { -- End robbery if player goes out of distance
enabled = true,
radius = 150.0 -- Out of distance radius
},
timer = { -- End robbery if timer runs out
enabled = true,
seconds = 600,
show = true, -- Show timer to the robber
}
}
Config.Selling = {
enabled = true,
coords = vector3(-2282.8491, 255.0210, 183.6015),
npcModel = 'u_m_m_aldinapoli',
heading = 30.6874,
moneyType = 'bank',
items = { -- Items that can be sold
['ruby_diamond'] = { label = 'Ruby Diamond', price = 45000 },
['diamond_necklace'] = { label = 'Diamond Necklace', price = 40000 },
['diamond'] = { label = 'Diamond', price = 1000 },
['platinum_bar'] = { label = 'Platinum Bar', price = 800 },
['gold_bar'] = { label = 'Gold Bar', price = 500 },
}
}
Config.CopsNotifications = {
jobs = { 'police', },
onRobbertyStart = {
title = 'Active Robbery',
desc = 'Paleto is being robbed! Hurry!',
}
}
Config.Disable = {
drillingCam = false, -- Disable drilling animation cam
paintingCam = false, -- Disable painting animation cam
smashingCam = false, -- Disable smashing animation cam
glassHeatCam = false, -- Disable glass heating animation cam
}
--[[
ONLY CHANGE THIS PART IF YOU HAVE RENAMED SCRIPTS SUCH AS FRAMEWORK, TARGET, INVENTORY ETC
RENAME THE SCRIPT NAME TO THE NEW NAME
--]]
---@type table Only change these if you have changed the name of a resource
Resources = {
OXTarget = { name = 'ox_target', export = 'all' },
QBTarget = { name = 'qb-target', export = 'all' },
MKALasers = { name = 'mka-lasers', export = false },
}
--[[
Only change this, if you have changed the name of a map you're using.
The name must be the same as the name of the map in the [resources].
Inserting a different name will break the script.
Key of MapNames MUST be the same of the Config.Robberies.KEYHERE in order to detect.
Do NOT change the value of the key, only the value of the map.
--]]
MapNames = {
K4MB1 = 'k4mb1-paletobank',
GABZ = 'cfx-gabz-paletobank',
}
IgnoreScriptFoundLogs = false
Map Configuration
This is the default map configuration. We have a variety of configurations for other maps such as K4MB1 and Gabz.
--[[
THIS CONFIG FILE IS PURELY FOR THE K4MB1 MAP CONFIGURATION
Are you using any different map? Make sure to edit the other config.
--]]
-- TODO: all loot items + sell items in config.lua
Config.Robberies.DEFAULT = {
start = {
door = {
model = -1666470363,
coords = vector3(-109.650002, 6462.109863, 31.984985),
},
requiredItems = { -- Required items to start the robbery, when remove = true, the item(s) will be removed when the robbery starts
{ item = 'WEAPON_ASSAULTRIFLE', label = 'Assault Rifle', amount = 1, remove = false },
{ item = 'drill', label = 'Drill', amount = 1, remove = false },
{ item = 'c4_bomb', label = 'C4 Bomb', amount = 3, remove = false },
{ item = 'thermite', label = 'Thermite Bomb', amount = 4, remove = false },
{ item = 'usb_stick', label = 'USB Stick', amount = 1, remove = false },
-- { item = 'safe_cracker', label = 'Safe Cracker', amount = 1, remove = false },
{ item = 'glass_cutter', label = 'Glass Cutter', amount = 1, remove = false },
},
},
-- Loot under here is started when the robbery is started, we recommend putting the loot in the doors below, to prevent hackers to exploit.
-- Unless there is no specific door for the loot, the loot will be set in here
startLoot = {
stacks = {
{
model = 'h4_prop_h4_cash_stack_01a',
coords = vector3(-104.416, 6477.068, 31.484),
heading = 129.0,
rewards = {
money = { type = 'bank', min = 25000, max = 50000 },
}
},
},
displays = {
{
glassCoords = vector3(-114.1573, 6473.6689, 30.6267), -- Coords for the glass
glassHeading = 42.1, -- Heading for the glass
valuables = { -- It takes a random valuable out of this list, if you always want it to be 1, just remove the others
{
model = 'h4_prop_h4_necklace_01a',
heading = 42.1,
displayRotation = vector3(0.0, 0.0, 42.1),
rewards = {
items = {
{ item = 'diamond_necklace', label = 'Diamond Necklace', min = 1, max = 1 },
}
},
},
},
requiredItems = {
{ item = 'glass_cutter', label = 'Glass Cutter', amount = 1, remove = false },
},
},
},
},
-- Loot is mostly setupped within the doors below, so it spawns when a door has been opened, in order to prevent hackers from exploiting.
doors = {
entrance = {
action = 'c4',
requiredItems = {
{ item = 'c4_bomb', label = 'C4 Bomb', amount = 1, remove = true },
},
scene = { -- Scene settings are required for c4
coords = vector3(-110.4610, 6462.6899, 31.6408),
rotation = vector3(0.0, 0.0, -46.0),
}
},
ironOne = {
action = 'c4',
requiredItems = {
{ item = 'c4_bomb', label = 'C4 Bomb', amount = 1, remove = true },
},
scene = { -- Scene settings are required for c4
coords = vector3(-105.5564, 6472.5503, 31.6267),
rotation = vector3(0.0, 0.0, 43.0),
},
lockers = {
{
coords = vector3(-107.108, 6473.026, 32.281),
rotation = vector3(0.0, 0.0, 133.0),
requiredItems = {
{ item = 'drill', label = 'Drill', amount = 1, remove = false },
},
rewards = {
money = { type = 'bank', min = 2500, max = 10000 },
items = {
{ item = 'platinum_bar', label = 'Platinum Bar', min = 0, max = 2 },
}
}
},
{
coords = vector3(-108.026, 6473.944, 32.084),
rotation = vector3(0.0, 0.0, 133.0),
requiredItems = {
{ item = 'drill', label = 'Drill', amount = 1, remove = false },
},
rewards = {
money = { type = 'bank', min = 2500, max = 10000 },
items = {
{ item = 'platinum_bar', label = 'Platinum Bar', min = 0, max = 2 },
}
}
},
{
coords = vector3(-107.893, 6475.822, 32.087),
rotation = vector3(0.0, 0.0, 42.0),
requiredItems = {
{ item = 'drill', label = 'Drill', amount = 1, remove = false },
},
rewards = {
money = { type = 'bank', min = 2500, max = 10000 },
items = {
{ item = 'platinum_bar', label = 'Platinum Bar', min = 0, max = 2 },
}
}
},
},
},
ironTwo = {
action = 'c4',
requiredItems = {
{ item = 'c4_bomb', label = 'C4 Bomb', amount = 1, remove = true },
},
scene = { -- Scene settings are required for c4
coords = vector3(-105.6055, 6475.1440, 31.6267),
rotation = vector3(0.0, 0.0, -49.0),
},
lockers = {
{
coords = vector3(-106.126, 6478.815, 32.072),
rotation = vector3(0.0, 0.0, 43.0),
requiredItems = {
{ item = 'drill', label = 'Drill', amount = 1, remove = false },
},
rewards = {
money = { type = 'bank', min = 2500, max = 10000 },
items = {
{ item = 'platinum_bar', label = 'Platinum Bar', min = 0, max = 2 },
}
}
},
{
coords = vector3(-104.089, 6479.418, 32.091),
rotation = vector3(0.0, 0.0, -47.0),
requiredItems = {
{ item = 'drill', label = 'Drill', amount = 1, remove = false },
},
rewards = {
money = { type = 'bank', min = 2500, max = 10000 },
items = {
{ item = 'platinum_bar', label = 'Platinum Bar', min = 0, max = 2 },
}
}
},
{
coords = vector3(-102.614, 6477.943, 32.084),
rotation = vector3(0.0, 0.0, -47.0),
requiredItems = {
{ item = 'drill', label = 'Drill', amount = 1, remove = false },
},
rewards = {
money = { type = 'bank', min = 2500, max = 10000 },
items = {
{ item = 'gold_bar', label = 'Gold Bar', min = 0, max = 2 },
}
}
},
{
coords = vector3(-102.386, 6475.645, 32.085),
rotation = vector3(0.0, 0.0, -135.0),
requiredItems = {
{ item = 'drill', label = 'Drill', amount = 1, remove = false },
},
rewards = {
money = { type = 'bank', min = 2500, max = 10000 },
items = {
{ item = 'gold_bar', label = 'Gold Bar', min = 0, max = 2 },
}
}
},
{
coords = vector3(-103.315, 6474.716, 32.08),
rotation = vector3(0.0, 0.0, -135.0),
requiredItems = {
{ item = 'drill', label = 'Drill', amount = 1, remove = false },
},
rewards = {
money = { type = 'bank', min = 2500, max = 10000 },
items = {
{ item = 'gold_bar', label = 'Gold Bar', min = 0, max = 2 },
}
}
},
},
},
office = {
action = 'thermite',
requiredItems = {
{ item = 'thermite_bomb', label = 'Thermite Bomb', amount = 1, remove = true },
},
scene = { -- Scene settings are required for thermite
coords = vector3(-109.5194, 6468.4243, 31.6267),
rotation = vector3(0.0, 0.0, 42.8),
},
},
},
movingDoors = {
vaultDoor = {
action = 'usb',
requiredItems = {
{ item = 'usb_stick', label = 'USB Stick', amount = 1, remove = false },
},
lockers = {
{
coords = vector3(-100.095, 6459.402, 31.952),
rotation = vector3(0.0, 0.0, -48.0),
requiredItems = {
{ item = 'drill', label = 'Drill', amount = 1, remove = false },
},
rewards = {
money = { type = 'bank', min = 2500, max = 10000 },
items = {
{ item = 'gold_bar', label = 'Gold Bar', min = 0, max = 2 },
}
}
},
{
coords = vector3(-100.447, 6457.51, 32.2),
rotation = vector3(0.0, 0.0, -138.0),
requiredItems = {
{ item = 'drill', label = 'Drill', amount = 1, remove = false },
},
rewards = {
money = { type = 'bank', min = 2500, max = 10000 },
items = {
{ item = 'gold_bar', label = 'Gold Bar', min = 0, max = 2 },
}
}
},
{
coords = vector3(-101.569, 6456.391, 32.198),
rotation = vector3(0.0, 0.0, -138.0),
requiredItems = {
{ item = 'drill', label = 'Drill', amount = 1, remove = false },
},
rewards = {
money = { type = 'bank', min = 2500, max = 10000 },
items = {
{ item = 'gold_bar', label = 'Gold Bar', min = 0, max = 2 },
}
}
},
{
coords = vector3(-102.16, 6455.8, 31.937),
rotation = vector3(0.0, 0.0, -138.0),
requiredItems = {
{ item = 'drill', label = 'Drill', amount = 1, remove = false },
},
rewards = {
money = { type = 'bank', min = 2500, max = 10000 },
items = {
{ item = 'gold_bar', label = 'Gold Bar', min = 0, max = 2 },
}
}
},
{
coords = vector3(-103.48, 6456.288, 31.942),
rotation = vector3(0.0, 0.0, 132.0),
requiredItems = {
{ item = 'drill', label = 'Drill', amount = 1, remove = false },
},
rewards = {
money = { type = 'bank', min = 2500, max = 10000 },
items = {
{ item = 'gold_bar', label = 'Gold Bar', min = 0, max = 2 },
}
}
},
},
},
},
laserZones = { -- Uses mka_lasers
{
deactivate = vector3( -103.099609375, 6451.74658203125, 31.9446907043457),
lasers = { -- Only change these lasers if you have experience setting it up with mka_lasers
{
vector3(-113.184, 6464.417, 33.329),
{vector3(-118.796, 6469.529, 30.627), vector3(-115.483, 6472.552, 30.627), vector3(-110.057, 6467.511, 30.627), vector3(-112.132, 6464.798, 30.627), vector3(-118.762, 6469.487, 30.627)},
{travelTimeBetweenTargets = {1.0, 1.0}, waitTimeAtTargets = {0.0, 0.0}, randomTargetSelection = false, name = "laser1"}
},
{
vector3(-107.923, 6468.477, 34.31),
{vector3(-112.138, 6464.754, 30.627), vector3(-109.052, 6461.714, 30.627), vector3(-101.535, 6469.281, 30.627), vector3(-104.306, 6472.873, 30.627), vector3(-109.195, 6468.592, 30.627), vector3(-112.153, 6464.752, 30.627)},
{travelTimeBetweenTargets = {1.0, 1.0}, waitTimeAtTargets = {0.0, 0.0}, randomTargetSelection = false, name = "laser2"}
},
{
vector3(-104.659, 6479.389, 33.767),
{vector3(-101.939, 6476.673, 30.627), vector3(-103.975, 6474.677, 30.627), vector3(-106.752, 6477.477, 30.627), vector3(-104.852, 6479.479, 30.627), vector3(-101.947, 6476.674, 30.627)},
{travelTimeBetweenTargets = {1.0, 1.0}, waitTimeAtTargets = {0.0, 0.0}, randomTargetSelection = false, name = "laser3"}
},
{
vector3(-107.391, 6462.51, 33.758),
{vector3(-104.052, 6464.145, 30.627), vector3(-102.326, 6459.908, 30.627)},
{travelTimeBetweenTargets = {1.0, 1.0}, waitTimeAtTargets = {0.0, 0.0}, randomTargetSelection = false, name = "laser4"}
},
{
vector3(-102.584, 6455.528, 33.345),
{vector3(-101.736, 6459.588, 30.627), vector3(-100.091, 6458.09, 30.627), vector3(-102.492, 6455.894, 30.627), vector3(-103.808, 6457.061, 30.627), vector3(-101.691, 6459.532, 30.627)},
{travelTimeBetweenTargets = {1.0, 1.0}, waitTimeAtTargets = {0.0, 0.0}, randomTargetSelection = false, name = "laser5"}
}
}
},
},
cameras = { -- Viewable cameras when the robbery is started
enabled = true,
open = {
everyone = false, -- If true, everyone can view the cameras, otherwise only the jobs below
jobs = { 'police', },
coords = vector3(-118.81, 6477.325, 31.937),
rotation = vector3(0.0, 0.0, -135.0),
},
cams = {
{ x = -115.39910888672, y = 6472.7670898438, z = 33.364720153809, r = { x = -35.0, y = -0.0, z = -152.69522094727 } },
{ x = -108.140625, y = 6462.7856445312, z = 33.642205047607, r = { x = -35.0, y = -0.0, z = -14.821141242981 } },
{ x = -107.40297698975, y = 6475.7387695312, z = 33.787339019775, r = { x = -35.0, y = -0.0, z = -145.56895446777 } },
{ x = -105.00240325928, y = 6478.0541992188, z = 33.7430809021, r = { x = -35.0, y = -0.0, z = -166.08137512207 } },
{ x = -106.84016418457, y = 6462.4638671875, z = 33.944584655762, r = { x = -35.0, y = -0.0, z = -116.79001617432 } },
{ x = -102.33418273926, y = 6456.3100585938, z = 33.779198455811, r = { x = -35.0, y = -0.0, z = -24.506567001343 } },
}
}
}
Last updated