# QB Installations

## server.cfg

Add the command to your server.cfg file and make sure that the script is started.

```
ensure qb_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.

{% code fullWidth="false" %}

```lua
Config = {}

-- 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 = false

-- 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 ~E~ to collect sand'
}

-- Notification function for QBCore
Config.SendNotification = function(source, message)
    TriggerClientEvent('QBCore:Notify', source, message, 'primary') -- Adjust notification type if needed
end

-- Areas where sand can be collected
Config.CollectionZones = {
    {x = 1000.0, y = 2000.0, z = 50.0, radius = 500.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'
}
```

{% endcode %}

## MySQL

Please insert the following `MySQL` code into your `MySQL` server to record the positions of the cars.

```sql
INSERT INTO items (name, label, weight) VALUES 
('eye_cleansing', 'Eye Cleaning', 1);
```

{% hint style="info" %}

### Do you have questions

You can customize everything else in your config.lua. If you have any questions or encounter difficulties, feel free to contact us on Discord.
{% endhint %}
