From 47a36bb9c7e9605fa4797d0b6d1dad7fbee04706 Mon Sep 17 00:00:00 2001 From: ElPumpo Date: Wed, 15 Jan 2020 10:58:08 +0100 Subject: [PATCH] Added missing ESX usage --- config.lua | 4 ++-- server/main.lua | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) 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])}})