Merge pull request #343 from SMVampire/master

Fix Vehicle Resell Circle
This commit is contained in:
ESXCrackhead
2021-04-22 11:17:25 -05:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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
+1 -1
View File
@@ -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