mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 09:01:32 +00:00
Merge pull request #343 from SMVampire/master
Fix Vehicle Resell Circle
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user