Files
community_bridge/modules/vehicleKey/Renewed-Vehiclekeys/server/server.lua
T
2025-02-24 18:23:19 -05:00

13 lines
571 B
Lua

if GetResourceState('Renewed-Vehiclekeys') ~= 'started' or (BridgeSharedConfig.VehicleKey ~= "Renewed-Vehiclekeys" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
VehicleKey = VehicleKey or {}
VehicleKey.GiveKeys = function(src, vehicle, plate)
if not plate then plate = GetVehicleNumberPlateText(vehicle) end
exports['Renewed-Vehiclekeys']:addKey(src, plate)
end
VehicleKey.RemoveKeys = function(src, vehicle, plate)
if not plate then plate = GetVehicleNumberPlateText(vehicle) end
exports['Renewed-Vehiclekeys']:removeKey(src, plate)
end