Check for EnablePlayerMngmnt on Veh Sell

This commit is contained in:
SMVampire
2021-04-21 13:30:04 -04:00
committed by GitHub
parent 34324bb83a
commit 433267f32d
+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