Configuration


1. Configure cl_config.lua

In this section, you will configure the client-side configuration file cl_config.lua. Follow the instructions below to set it up according to your framework (ESX or QBcore).

Config = {}

Config.Header = {
    title = "RESMONSTUDIO",  -- The title displayed in the header
    name = "Dispatches"        -- The name of the system in the header
}

Config.Options = {
    Language = 'en',                    -- The language used in the system
    OpenKey = 'f1',                     -- Set the key used to open the dispatch
    OpenCommand = 'dispatch',           -- The command that players can type to open the scoreboard
    UseOldEsx = false,                  -- Set to true if you are using the old ESX export method
    UseVersionCheck = true,              -- If true, version checking for the script is enabled to ensure compatibility
    SharedObject = {                    -- Configuration for obtaining ESX shared object
        client = "esx:getSharedObject", -- Client-side event to get the shared ESX object
        server = "esx:getSharedObject", -- Server-side event to get the shared ESX object
    },
    Jobs = {
        ["ambulance"] = {               -- Add more jobs if u need 
            enabled = true,             -- Enable or disable the ambulance job
        },
    }
}

function Notify(msg)
    TriggerEvent('esx:showNotification', msg)
    -- TriggerEvent('rs_notify', 'Dispatch', msg, 'info', 5000)
end

2. Configure sv_config.lua

In this section, you will configure the server-side configuration file sv_config.lua. Follow the instructions below to set it up according to your framework (ESX or QBcore)


3. Select Languages in sh_languages.lua

In the sh_languages.lua file, you can manage all available language options. To set your preferred language and its corresponding translations, navigate to cl_config.lua and specify your desired locale. This allows you to customize the different languages.

Last updated