# Accessible code

{% tabs %}
{% tab title="shared/main" %}

```lua
Config = {
    locales = 'en',
    versionChecking = true,

    speedType = 'mp/h', -- km/h or mp/h
    speedMath = {
        ['km/h'] = 3.6,
        ['mp/h'] = 2.2
    },

    instantRemoveMoney = true,
    instantType = 'money', -- money or bank
    billingType = 'esx_billing', -- esx_billing, custom

    useDispatch = true,

    keys = {
        finish = 191,
        cancel = 194,
        moveUp = 85,
        moveDown = 48,
        moveRight = 175,
        moveLeft = 174,
        moveForward = 172,
        moveBack = 173,
        rotateRight = 313,
        rotateLeft = 312,
        increaseDistance = 83,
        reduceDistance = 84
    },

    blacklistedJobs = {
        'police'
    },

    whitelistedVehicles = {
        'police', 'police2'
    },


    props = {
        'prop_cctv_cam_01a',
        'prop_cctv_cam_01b',
        'prop_cctv_cam_05a'
    },

    blips = {
        enable = 'wl', -- 'wl' for wl jobs, 'all' for all players
        id = 184,
        scale = .8,
        color = 4,
        label = 'Radar'
    },

    commands = {
        {
            name = 'createradar',
            help = 'Create radar',
            permission = 'group.admin',
        },
        {
            name = 'editradar',
            help = 'Edit radar',
            permission = 'group.admin',
        }
    }
}
```

{% endtab %}

{% tab title="shared/webhook" %}

```lua
Logs = {
    enable = false,
    webhook = '',
    steamName = true,
    botName = 'Radar Log',
    colors = {
        ['info'] = 1209030,
        ['success'] = 5024796,
        ['error'] = 12980754,
    }
}
```

{% endtab %}

{% tab title="utils/client" %}

```lua
Utils = {}

Utils.Notification = function(title, description, type, duration)
    lib.notify({
        title = title,
        description = description,
        type = type,
        duration = duration
    })
end

function Utils.Dispatch()
    local PlayerCoords = GetEntityCoords(cache.ped)
    local PlayerHeading = GetEntityHeading(cache.ped)
    local PlayerVehicle = GetVehiclePedIsIn(cache.ped, false)

    -- here you can put your function for dispatch
end
```

{% endtab %}

{% tab title="utils/server" %}

```lua
Utils = {}

Utils.Notification = function(src, title, description, type, duration)
    TriggerClientEvent('ox_lib:notify', src, {
        title = title,
        description = description,
        type = type,
        duration = duration
    })
end

Utils.SendBill = function(targetId, job, reason, amount)
    if Config.billingType == 'esx_billing' then
        TriggerEvent('esx_billing:sendRadarBill', targetId, 'society_'..job, reason, amount)
    elseif Config.billingType == 'custom' then
        -- your event
    end
end
```

{% endtab %}
{% endtabs %}
