Implemented impounding vehicles (beta), endless i18n fixes, tab indents

This commit is contained in:
ElPumpo
2018-05-02 18:34:30 +02:00
parent 505bb978db
commit e14c2a5957
9 changed files with 462 additions and 384 deletions
+17
View File
@@ -332,6 +332,23 @@ ESX.RegisterServerCallback('esx_policejob:getVehicleInfos', function(source, cb,
end)
ESX.RegisterServerCallback('esx_policejob:getVehicleFromPlate', function(source, cb, plate)
MySQL.Async.fetchAll(
'SELECT * FROM owned_vehicles WHERE plate = @plate',
{
['@plate'] = plate
},
function(result)
if result[1] ~= nil then
local playerName = ESX.GetPlayerFromIdentifier(result[1].owner).name
cb(playerName, true)
else
cb('unknown', false)
end
end
)
end)
ESX.RegisterServerCallback('esx_policejob:getArmoryWeapons', function(source, cb)
TriggerEvent('esx_datastore:getSharedDataStore', 'society_police', function(store)