Getting QB-Core ready for qb-jobs (#883)

Co-authored-by: Zerio <54480523+Z3rio@users.noreply.github.com>
This commit is contained in:
R0adRa93
2022-12-16 17:38:31 -05:00
committed by GitHub
parent 1ef7337ce5
commit cc64ee38e8
6 changed files with 27 additions and 91 deletions
-13
View File
@@ -117,19 +117,6 @@ RegisterNetEvent('QBCore:Command:GoToMarker', function()
end)
-- Vehicle Commands
RegisterNetEvent('QBCore:Client:VehicleInfo', function(info)
local plate = QBCore.Functions.GetPlate(info.vehicle)
local data = {
vehicle = NetToVeh(info.netid),
seat = info.seat,
name = info.modelName,
plate = plate,
driver = GetPedInVehicleSeat(info.vehicle, -1),
inseat = GetPedInVehicleSeat(info.vehicle, info.seat),
haskeys = exports['qb-vehiclekeys']:HasKeys(plate)
}
TriggerEvent('QBCore:Client:'..info.event..'Vehicle', data)
end)
RegisterNetEvent('QBCore:Command:SpawnVehicle', function(vehName)
local ped = PlayerPedId()