Lama Studios Documentation
  • 📌Information
    • Welcome
    • Downloading Resources
  • 🛑lama admin
    • Information
    • Configuration
    • Common errors
  • 🚓Lama Police Buttons
    • Information
    • Configuration
    • Common errors
  • 💲RLO MARKET
    • Information
    • Configuration
    • Common errors
  • 🚗RLO CARWASH
    • Information
    • Configuration
    • Common errors
Powered by GitBook
On this page
  • Main Configuration
  • Blip Configuration
  • Sound Configuration
  • Layout Configuration
  1. Lama Police Buttons

Configuration

Main Configuration

ESX = exports['es_extended']:getSharedObject() --do not touch
printDebug = function(msg) if Config.Debug then print(msg) end end --do not touch

-- config file
Config = {
    Debug = false, --toggles additional information for developers
    VersionCheck = true, --check the version of the script
    
    Locale = 'en', --set the locale of the script
    Jobs = {'police', 'marshal'}, --all jobs that can use the buttons

    ChatSuggestions = true, --should we add chat suggestions for the commands?
    PanicButton = 'PAGEDOWN',
    PositionButton = 'PAGEUP',

    Cooldown = 15, --cooldown between using the buttons
    SelfNotify = true, --should the sender get a notify?
}

Discord = {
    Enable = false, --do you want discord webhook messages when someone fires a panic/position
    -- PUT YOUR WEBHOOK LINK IN 'server/sv_apiKeys.lua'!

    Color = 65535, --embed color
    PureContent = 'This is a pure message!', --tag a role for example
    Name = 'lamaPoliceButtons Webhook', --name for the webhook bot
    Avatar = '', --avatar link for the webhook bot
    Title = 'Police-Buttons', --embed title
    Footer = 'Made by SirLamaGott' --embed footer 
}

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

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

PreviousInformationNextCommon errors

Last updated 2 months ago

🚓