ESX Installations
server.cfg
Add the command to your server.cfg file and make sure that the script is started.
ensure mt_sand_throwing
config.lua
You can configure everything in config.lua. Once you have made your desired changes, you'll need to restart your server to ensure that everything works smoothly.
Config = {}
-- Set to true for ESX 1.1, and false for ESX 1.2
Config.esxvs = false
-- Item name for eye cleaning
Config.EyeCleaningItem = 'eye_cleansing'
-- Commands for sand actions
Config.Commands = {
CollectSand = 'sandcollect',
ThrowSand = 'sandthrow'
}
-- Enable or disable help notification for collecting sand
Config.EnableHelpNotification = true
-- Notifications
Config.Notifications = {
CollectedSand = 'You have collected sand!',
NoSandHere = 'There is no sand here!',
ReceivedSand = 'You received sand! Throw it at someone!',
HitBySand = 'You were hit by sand!',
EyesCleaned = 'Your eyes are now clean!',
PressToCollect = 'Press ~INPUT_CONTEXT~ to collect sand'
}
-- Notification function and settings
Config.SendNotification = function(message)
TriggerEvent('notifications', "#673ab7", "MT Sand", message)
end
-- Areas where sand can be collected
Config.CollectionZones = {
{x = 1000.0, y = 2000.0, z = 50.0, radius = 1000.0},
{x = 300.0, y = 400.0, z = 30.0, radius = 30.0}
}
-- Duration of blindness effect in milliseconds (default: 10 seconds)
Config.BlindnessDuration = 10000
-- Blindness animation settings
Config.BlindnessAnimation = {
dictionary = 'anim@heists@ornate_bank@thermal_charge',
animation = 'cover_eyes_loop',
}
-- Visual effects for blindness
Config.BlindnessEffects = {
screenEffect = 'Dont_tazeme_bro',
shakeEffect = 'SMALL_EXPLOSION_SHAKE',
shakeIntensity = 2.0,
timecycleModifier = 'BarryFadeOut'
}
MySQL
Please insert the following MySQL
code into your MySQL
server to record the positions of the cars.
INSERT INTO items (name, label, weight) VALUES ('eye_cleansing', 'Eye cleaning', 1);
Last updated
Was this helpful?