Configuration
1. Configure cl_config.lua
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
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)
CFG = {}
CFG.Webhooks = {
Color = "16777215",
Author = "ResmonStudio",
AuthorURL = "https://i.ibb.co/PZDN7K4/logo.png",
ThumbURL = "https://i.ibb.co/PZDN7K4/logo.png",
Username = "RS | Logs",
Webhooks = {
dispatch = {'PUT_YOUR_WEBHOOK'},
update = {'PUT_YOUR_WEBHOOK'},
}
}
3. Select Languages in sh_languages.lua
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.
Config.Languages = {
['en'] = {
['StartedAction'] = 'Dispatch marked, head to the coordinates marked on your GPS.',
['DoneDispatch'] = 'Dispatch resolved, thank you for your service.',
['AlreadyOnDispatch'] = 'You are already on a dispatch! Finish the current one before starting a new one.',
['NotAllowed'] = 'Your job is not authorized to use the dispatch system.',
},
['de'] = {
['StartedAction'] = 'Dispatch markiert, fahren Sie zu den Koordinaten, die auf Ihrem GPS markiert sind.',
['DoneDispatch'] = 'Dispatch abgeschlossen, danke für Ihren Dienst.',
['AlreadyOnDispatch'] = 'Sie sind bereits auf einem Dispatch! Beenden Sie den aktuellen Dispatch, bevor Sie einen neuen beginnen.',
['NotAllowed'] = 'Ihr Job ist nicht berechtigt, das Dispatch-System zu verwenden.',
},
['fr'] = {
['StartedAction'] = 'Dispatch marqué, rendez-vous aux coordonnées indiquées sur votre GPS.',
['DoneDispatch'] = 'Dispatch terminé, merci pour votre service.',
['AlreadyOnDispatch'] = 'Vous êtes déjà en mission ! Terminez celle en cours avant d’en commencer une nouvelle.',
['NotAllowed'] = 'Votre métier n’est pas autorisé à utiliser le système de dispatch.',
},
['es'] = {
['StartedAction'] = 'Dispatch marcado, dirígete a las coordenadas señaladas en tu GPS.',
['DoneDispatch'] = 'Dispatch resuelto, gracias por tu servicio.',
['AlreadyOnDispatch'] = '¡Ya estás en un dispatch! Termina el actual antes de comenzar uno nuevo.',
['NotAllowed'] = 'Tu trabajo no está autorizado para usar el sistema de dispatch.',
},
['cs'] = {
['StartedAction'] = 'Dispečink označen, zamiřte na souřadnice označené ve vašem GPS.',
['DoneDispatch'] = 'Dispečink vyřešen, děkujeme za vaši službu.',
['AlreadyOnDispatch'] = 'Už jste na dispečinku! Dokončete aktuální před zahájením nového.',
['NotAllowed'] = 'Vaše práce není oprávněna používat systém dispečinku.',
},
['pl'] = {
['StartedAction'] = 'Dyspozycja oznaczona, udaj się na współrzędne oznaczone w GPS.',
['DoneDispatch'] = 'Dyspozycja zakończona, dziękujemy za Twoją służbę.',
['AlreadyOnDispatch'] = 'Już jesteś na dyspozycji! Ukończ bieżącą, zanim rozpoczniesz nową.',
['NotAllowed'] = 'Twoja praca nie ma uprawnień do korzystania z systemu dyspozycji.',
},
['it'] = {
['StartedAction'] = 'Dispatch contrassegnato, dirigiti alle coordinate indicate nel tuo GPS.',
['DoneDispatch'] = 'Dispatch risolto, grazie per il tuo servizio.',
['AlreadyOnDispatch'] = 'Sei già su un dispatch! Termina quello attuale prima di iniziarne uno nuovo.',
['NotAllowed'] = 'Il tuo lavoro non è autorizzato a utilizzare il sistema di dispatch.',
},
['pt'] = {
['StartedAction'] = 'Despacho marcado, vá para as coordenadas marcadas no seu GPS.',
['DoneDispatch'] = 'Despacho resolvido, obrigado pelo seu serviço.',
['AlreadyOnDispatch'] = 'Já está em um despacho! Termine o atual antes de começar um novo.',
['NotAllowed'] = 'Seu trabalho não está autorizado a usar o sistema de despacho.',
},
}
Last updated