diff --git a/client/main.lua b/client/main.lua index 90aea3f6..a63bcdb9 100644 --- a/client/main.lua +++ b/client/main.lua @@ -45,6 +45,7 @@ function PlayerManagement() else Config.Zones.ShopEntering.Type = -1 Config.Zones.BossActions.Type = -1 + Config.Zones.ResellVehicle.Type = -1 end end end diff --git a/server/main.lua b/server/main.lua index 8fb1f12a..1b9d5e3e 100644 --- a/server/main.lua +++ b/server/main.lua @@ -335,7 +335,7 @@ end) ESX.RegisterServerCallback('esx_vehicleshop:resellVehicle', function(source, cb, plate, model) local xPlayer, resellPrice = ESX.GetPlayerFromId(source) - if xPlayer.job.name == 'cardealer' then + if xPlayer.job.name == 'cardealer' or not Config.EnablePlayerManagement then -- calculate the resell price for i=1, #vehicles, 1 do if GetHashKey(vehicles[i].model) == model then