Files
community_bridge/modules/vehicleKey/qb-vehiclekeys/client/client.lua
T

17 lines
512 B
Lua
Raw Normal View History

---@diagnostic disable: duplicate-set-field
local resourceName = "qb-vehiclekeys"
2025-05-18 23:45:37 -04:00
if GetResourceState(resourceName) == 'missing' then return end
2025-02-06 05:33:26 -05:00
VehicleKey = VehicleKey or {}
VehicleKey.GiveKeys = function(vehicle, plate)
2025-03-03 19:09:18 -05:00
if not plate then return false end
2025-02-24 18:23:19 -05:00
TriggerServerEvent("qb-vehiclekeys:server:AcquireVehicleKeys", plate)
end
VehicleKey.RemoveKeys = function(vehicle, plate)
2025-03-03 19:09:18 -05:00
if not plate then return false end
2025-02-24 18:23:19 -05:00
TriggerEvent("qb-vehiclekeys:client:RemoveKeys", plate)
end
return VehicleKey