start keys serverside

This commit is contained in:
MrNewb committed 2025-02-16 09:29:27 -05:00
1 parent 17d68505a6
commit 75216f538e
4 files changed
+23 -6

No files matched your search

@@ -3,9 +3,12 @@ if GetResourceState('qbx_vehiclekeys') == 'started' then return end
VehicleKey = VehicleKey or {}
VehicleKey.GiveKeys = function(vehicle, plate)
if plate == nil and vehicle and DoesEntityExist(vehicle) then
plate = GetVehicleNumberPlateText(vehicle)
end
TriggerServerEvent('qb-vehiclekeys:server:AcquireVehicleKeys', plate)
end
VehicleKey.RemoveKeys = function(vehicle, plate)
return true
TriggerEvent('qb-vehiclekeys:client:RemoveKeys', plate)
end