diff --git a/config.lua b/config.lua index 0ef102ec..610145b8 100644 --- a/config.lua +++ b/config.lua @@ -1,5 +1,5 @@ Config = {} -Config.Locale = 'fr' +Config.Locale = 'sv' Config.OnlyFirstname = false -Config.EnableESXIdentity = false -- only turn this on if you are using esx_identity and want to use RP names +Config.EnableESXIdentity = true -- only turn this on if you are using esx_identity and want to use RP names diff --git a/server/main.lua b/server/main.lua index 4ec542a3..3442f910 100644 --- a/server/main.lua +++ b/server/main.lua @@ -1,3 +1,7 @@ +ESX = nil + +TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) + AddEventHandler('es:invalidCommandHandler', function(source, command_args, user) CancelEvent() TriggerClientEvent('chat:addMessage', source, {args = {'^1SYSTEM', _U('unknown_command', command_args[1])}})