Skip to main content

Configuration

All Wasabi Scripts contain various editable and unobscured files containing, exports, client and server functions, configuration methods and more. This is the main configuration file for our Christmas Event (wasabi_xmasevent) resource.

config.lua
-----------------For support, scripts, and more----------------
--------------- https://discord.gg/wasabiscripts -------------
---------------------------------------------------------------
Config = {}

-- Language 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 /game/configuration/locales/
Config.Language = 'en'

-- Christmas Weather Settings
Config.Weather = true -- Enable Christmas weather system (Including snow, foot trails, native sound effects, freezing weather, water effects, etc.)

-- Frost Overlay Settings
Config.FrostOverlay = { -- Provides a frosty type of UI overlay effect when out in the weather
enabled = true,
intensity = 0.7,
fadeSpeed = 2000,
}

-- Snowballs Settings
Config.Snowballs = {
enabled = true, -- Enable snowball pickup system
pickupKey = 38, -- Key to pickup snowball (default: E)
pickupCooldown = 2000, -- Cooldown in ms between pickups
pickupAnimation = 'anim@mp_snowball',
pickupClip = 'pickup_snowball', -- Animation clip
damageModifier = 0.0, -- Damage modifier for snowballs (0.0 = no damage)
maxDistance = 2.0, -- Maximum distance to pickup snowball
blacklistedInteriors = true,
giveInstruction = true, -- Give instruction to pickup snowball
instruction = '[E] - Pickup Snowball', -- Instruction to pickup snowball
}

Config.ChristmasCrackers = {
enabled = true, -- Enable Christmas crackers system
crackerCooldown = 2000, -- Cooldown in ms between uses
crackerItem = 'christmas_cracker', -- Item to use for Christmas crackers
crackerPrizes = {
{
prize = 'money', -- Item/account to give for Christmas crackers
account = true, -- If the prize is an account, set to true
amount = 14000, -- Amount of quantity to give
chance = 70 -- Chance to give prize (100 = 100%)
},
{
prize = 'weapon_pistol', -- Item/account to give for Christmas crackers
account = false, -- If the prize is an account, set to true
amount = 1, -- Amount of quantity to give
chance = 20 -- Chance to give prize (100 = 100%)
},
{
prize = 'weapon_assaultrifle', -- Item/account to give for Christmas crackers
account = false, -- If the prize is an account, set to true
amount = 1, -- Amount of quantity to give
chance = 5 -- Chance to give prize (100 = 100%)
}
},
santaShop = {
enabled = true, -- Enable Santa ped
prop = 'wsb_santa', -- Prop of Santa ped
ped = nil, -- Ped entity (Leave prop nil if you want to use prop instead of ped)
coords = vec4(193.029, -855.31, 31.25, 180.00), -- Coords of Santa ped/prop (x, y, z, heading)
target = {
enabled = false, -- Enable target to interact with Santa prop
label = 'Open Santa Shop', -- Label to display in the target
icon = 'fa-solid fa-gift', -- Icon to display in the target
distance = 2.5, -- Distance to interact with Santa prop/ped
},
instruction = '[E] - Open Santa Shop', -- Instruction to open Santa shop (f not using target)
distance = 2.5, -- Distance to interact with Santa prop/ped (if not using target)
hotKey = 38, -- Hotkey to open Santa shop (default: E) (if not using target)

minCrackers = 3, -- Minimum number of crackers to give
maxCrackers = 7 -- Maximum number of crackers to give
}
}