Configuration

Main Configuration

Config = { 
    Locale = 'en', -- your language, this script comes with: en, de 
    Debug = false, -- gives more information
    VersionCheck = true, --enable or disable version check?
    OldESX = false, -- put this to true if you are using ESX 1.2 or 1.1

    ChatSuggestions = true, -- show chat suggestions
    PanicButton = 'PAGEDOWN', -- standard key for keymapping
    PositionButton = 'PAGEUP', -- standard key for keymapping
    Cooldown = 15, -- (in seconds)
    SelfNotify = true, -- send notify to player that pushes panic/gps button
}

Enabling Debug can cause a higher resmon usage due to massive prints.

If you are using a ESX 1.1 or ESX 1.2 you need to set OldESX to true.

Blip Configuration

Blip = {
    Enabled = true,
    Time = 30,
    FlashInterval = 200,
}

FlashIntervall is how much the blip on the map should flash.

Sound Configuration

Sounds = { -- requires: xsound
    Enabled = true,
    URL = 'https://www.youtube.com/watch?v=4-A3b9ztnDQ',
    Volume = 1.0
}

You can find a guide on how to add sounds to xsoundhere: [LINK]

Layout Configuration

PanicButtonLayout = {
    Title = 'Police System', -- title of the notification
    SubTitle = '~r~PANIC BUTTON', -- subtitle of the notification (not used for qb-core)

    Content = 'Officer %s has fired his panic button!', -- "%s" is the officer name
    Icon = 'CHAR_CALL911' -- icons can be found here: https://wiki.rage.mp/index.php?title=Notification_Pictures
}

PositionButtonLayout = {
    Title = 'Police System',
    SubTitle = '~b~Position',

    Content = 'Officer %s has send his location!',
    Icon = 'CHAR_CALL911'
}

%s is the name of the officer that has send the position/panic

Icons can be found here: https://wiki.rage.mp/index.php?title=Notification_Pictures

Last updated