add baseevents back (#898)

This commit is contained in:
KamuiKody
2022-12-19 16:29:18 -05:00
committed by GitHub
parent cc64ee38e8
commit c79a7b907a
2 changed files with 55 additions and 0 deletions
+14
View File
@@ -158,6 +158,20 @@ RegisterNetEvent('QBCore:Command:DeleteVehicle', function()
end
end)
RegisterNetEvent('QBCore:Client:VehicleInfo', function(info)
local plate = QBCore.Functions.GetPlate(info.vehicle)
local data = {
vehicle = info.vehicle,
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)
-- Other stuff
RegisterNetEvent('QBCore:Player:SetPlayerData', function(val)