2025-03-04 22:24:19 -05:00
|
|
|
local resourceName = "F_RealCarKeysSystem"
|
|
|
|
|
local configValue = BridgeClientConfig.VehicleKey
|
|
|
|
|
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
2025-03-03 19:09:18 -05:00
|
|
|
|
2025-02-07 19:43:11 +00:00
|
|
|
VehicleKey = VehicleKey or {}
|
2025-02-07 19:25:33 +00:00
|
|
|
|
2025-02-07 19:33:03 +00:00
|
|
|
VehicleKey.GiveKeys = function(vehicle, plate)
|
2025-03-03 19:09:18 -05:00
|
|
|
if not plate then return false end
|
2025-02-07 19:33:03 +00:00
|
|
|
TriggerServerEvent('F_RealCarKeysSystem:generateVehicleKeys', plate)
|
2025-02-07 19:25:33 +00:00
|
|
|
end
|
|
|
|
|
|
2025-02-07 19:33:03 +00:00
|
|
|
VehicleKey.RemoveKeys = function(vehicle, plate)
|
2025-03-03 19:09:18 -05:00
|
|
|
return true
|
2025-02-07 19:25:33 +00:00
|
|
|
end
|