# Wert Jammer

## <mark style="background-color:orange;">INSTALLATION</mark>

1 - Add jammer item your item list

```lua
-- Item
["jammer"] = {
    ["name"] = "jammer",
    ["label"] = "Jammer",
    ["weight"] = 10000,
    ["type"] = "item",
    ["image"] = "jammer.png",
    ["unique"] = true,
    ["useable"] = true,
    ["shouldClose"] = false,
    ["combinable"] = nil,
    ["description"] = "Jammer"
},
```

2 - Make sure all depend scripts exist (Or download it)

* <mark style="background-color:purple;">DEPENDS</mark>
* ESX (<https://github.com/esx-framework/esx_core>)
* PolyZone (<https://github.com/mkafrin/PolyZone>)
* ox\_target (<https://github.com/overextended/ox_target>)

3 - Add jammer script to resources file

4 - Load sql file in ur database

5 - Restart server and enjoy

***NOTE : You can find the item image inside the folder***

## <mark style="background-color:blue;">ZONE CONTROL</mark>

*You can use this event to check whether the player has entered the jammer area in your different scripts.*

```lua
RegisterNetEvent("wert-jammer:zone", function(enter)
    if enter then
        -- Enter jammer zone
        -- You can add disable exports here 
    else
        -- Exit jammer zone
        -- You can add enable exports here
    end
end)
```

### *<mark style="background-color:green;">Installation complete</mark>*
