diff --git a/client/main.lua b/client/main.lua index 639f6369..eb7de0ce 100644 --- a/client/main.lua +++ b/client/main.lua @@ -388,7 +388,7 @@ Citizen.CreateThread(function() local currentZone = nil local zone = nil local lastZone = nil - if (PlayerData.job ~= nil and PlayerData.job.name == 'mecano') or Config.IsMecanoJobOnly == false then + if (PlayerData.job ~= nil and PlayerData.job.name == 'mechanic') or Config.IsMechanicJobOnly == false then for k,v in pairs(Config.Zones) do if GetDistanceBetweenCoords(coords, v.Pos.x, v.Pos.y, v.Pos.z, true) < v.Size.x then isInLSMarker = true @@ -401,7 +401,7 @@ Citizen.CreateThread(function() end if IsControlJustReleased(0, Keys['E']) and not lsMenuIsShowed and isInLSMarker then - if (PlayerData.job ~= nil and PlayerData.job.name == 'mecano') or Config.IsMecanoJobOnly == false then + if (PlayerData.job ~= nil and PlayerData.job.name == 'mechanic') or Config.IsMechanicJobOnly == false then lsMenuIsShowed = true local vehicle = GetVehiclePedIsIn(playerPed, false) diff --git a/config.lua b/config.lua index fffcc657..c633e2fa 100644 --- a/config.lua +++ b/config.lua @@ -1,7 +1,7 @@ -Config = {} -Config.DrawDistance = 100.0 -Config.Locale = 'en' -Config.IsMecanoJobOnly = false +Config = {} +Config.DrawDistance = 100.0 +Config.Locale = 'en' +Config.IsMechanicJobOnly = false Config.Zones = { diff --git a/server/main.lua b/server/main.lua index 61187c43..50e5145a 100644 --- a/server/main.lua +++ b/server/main.lua @@ -8,10 +8,10 @@ AddEventHandler('esx_lscustom:buyMod', function(price) local xPlayer = ESX.GetPlayerFromId(_source) price = tonumber(price) - if Config.IsMecanoJobOnly then + if Config.IsMechanicJobOnly then local societyAccount = nil - TriggerEvent('esx_addonaccount:getSharedAccount', 'society_mecano', function(account) + TriggerEvent('esx_addonaccount:getSharedAccount', 'society_mechanic', function(account) societyAccount = account end) if price < societyAccount.money then