mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 02:08:55 +00:00
Check for EnablePlayerMngmnt on Veh Sell
This commit is contained in:
+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