mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 18:28:52 +00:00
Implemented plate generation from esx_migrate
This commit is contained in:
+9
-1
@@ -31,7 +31,7 @@ function LoadVehicles()
|
||||
for j=1, #Categories, 1 do
|
||||
if Categories[j].name == vehicle.category then
|
||||
vehicle.categoryLabel = Categories[j].label
|
||||
break --todo confirm
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
@@ -371,6 +371,14 @@ ESX.RegisterServerCallback('esx_vehicleshop:getPlayerInventory', function (sourc
|
||||
cb({ items = items })
|
||||
end)
|
||||
|
||||
ESX.RegisterServerCallback('esx_vehicleshop:isPlateTaken', function (source, cb, plate)
|
||||
MySQL.Async.fetchAll('SELECT * FROM owned_vehicles WHERE @plate = plate', {
|
||||
['@plate'] = plate
|
||||
}, function (result)
|
||||
cb(result[1] ~= nil)
|
||||
end)
|
||||
end)
|
||||
|
||||
if Config.EnablePvCommand then
|
||||
TriggerEvent('es:addGroupCommand', 'pv', 'user', function(source, args, user)
|
||||
TriggerClientEvent('esx_vehicleshop:openPersonnalVehicleMenu', source)
|
||||
|
||||
Reference in New Issue
Block a user