⚙️Configuration

Config = {
    Debug = true,
    Framework = {
        name = 'esx' -- decide between esx, qbox or qbcore
    },
    AppStore = {
        name = 'Dispatch',
        description = 'Contact Services',
        defaultApp = true, -- OPTIONAL if set to true, app should be added without having to download it,
    },
    DispatchJobs = {
        {
            name = 'police',
            label = 'LSPD',
            phone = '18191919',
        },
        {
            name = 'ambulance',
            label = 'LSMD',
            phone = '18191919',
        },
        {
            name = 'mechanic',
            label = 'Palle Tuning',
            phone = '18191919',
        },
        {
            name = 'taxi',
            label = 'Los Santos Taxi Service',
            phone = '18191919',
        },
    },
    Notify = {
        Server = function (src, message)
            TriggerClientEvent('esx:showNotification', src, message);
        end,
        Client = function (message)
            TriggerEvent('esx:showNotification', message);
        end
    },
    Language = {
       fallback = 'de',
       resources = {
            de = {
                titles = {
                    myDispatches = 'Meine Dispatches',
                    manageDispatches = 'Dispatches verwalten',
                    dispatchesOverview = 'Dispatches Übersicht',
                    home = 'Home'
                },
                modal_open_title = 'DISPATCH',
                modal_dispatch_create = 'Erstellen',
                dispatchesOverview = {
                    toggleControlCenter = 'Leitstelle übernehmen',
                    category_open = 'Offene',
                    category_accepted = 'Akzeptierte',
                    category_declined = 'Abgelehnte',
                    category_closed = 'Geschlossene',
                },
                notify = {
                    dispatchAlreadySent = 'Du hast bereits einen Dispatch an diesen Service gesendet.',
                    dispatchSent = 'Dein Dispatch wurde erfolgreich gesendet.',
                    newDispatchGotCreated = 'Es ist ein neuer Dispatch eingegangen: %s',
                    controlCenterAlreadySet = 'Die Leitstelle ist bereits besetzt.'
                }
            },
            en = {
                titles = {
                    myDispatches = 'My Dispatches',
                    manageDispatches = 'Manage Dispatches',
                    dispatchesOverview = 'Dispatches Overview',
                    home = 'Home'
                },
                modal_open_title = 'DISPATCH',
                modal_dispatch_create = 'Create',
                dispatchesOverview = {
                    toggleControlCenter = 'Take Control Center',
                    category_open = 'Open',
                    category_accepted = 'Accepted',
                    category_declined = 'Declined',
                    category_closed = 'Closed',
                },
                notify = {
                    dispatchAlreadySent = 'You have already sent a dispatch to this service.',
                    dispatchSent = 'Your dispatch has been successfully sent.',
                    newDispatchGotCreated = 'A new dispatch has been received: %s',
                    controlCenterAlreadySet = 'The control center is already set.'
                }
            }
       }
    }
}

If you have any configuration questions or errors, feel free to open a ticket on our Discord!

Last updated