12 lines
438 B
Lua
12 lines
438 B
Lua
if GetResourceState('Renewed-Vehiclekeys') ~= 'started' then return end
|
|
VehicleKey = VehicleKey or {}
|
|
|
|
VehicleKey.GiveKeys = function(vehicle, plate)
|
|
if not DoesEntityExist(vehicle) then return false end
|
|
return exports['Renewed-Vehiclekeys']:addKey(plate)
|
|
end
|
|
|
|
VehicleKey.RemoveKeys = function(vehicle, plate)
|
|
if not DoesEntityExist(vehicle) then return false end
|
|
return exports['Renewed-Vehiclekeys']:removeKey(plate)
|
|
end |