Add files via upload
This commit is contained in:
1 parent
4248e258ae
commit
6dd3d9f4fa
2 files changed
+24
No files matched your search
@@ -0,0 +1,12 @@
|
|||||||
|
if GetResourceState('qs-fuelstations') ~= 'started' then return end
|
||||||
|
Fuel = {}
|
||||||
|
|
||||||
|
Fuel.GetFuel = function(vehicle)
|
||||||
|
if not DoesEntityExist(vehicle) then return 0.0 end
|
||||||
|
return exports['qs-fuelstations']:GetFuel(vehicle)
|
||||||
|
end
|
||||||
|
|
||||||
|
Fuel.SetFuel = function(vehicle, fuel)
|
||||||
|
if not DoesEntityExist(vehicle) then return end
|
||||||
|
return exports['qs-fuelstations']:SetFuel(vehicle, fuel)
|
||||||
|
end
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
if GetResourceState('mono_carkeys') ~= 'started' then return end
|
||||||
|
|
||||||
|
VehicleKey = {}
|
||||||
|
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||||
|
if type(plate) ~= 'string' then return end
|
||||||
|
TriggerServerEvent('mono_carkeys:CreateKey', plate)
|
||||||
|
end
|
||||||
|
|
||||||
|
VehicleKey.RemoveKeys = function(vehicle, plate)
|
||||||
|
if type(plate) ~= 'string' then return end
|
||||||
|
TriggerServerEvent('mono_carkeys:DeleteKey', 1, plate)
|
||||||
|
end
|
||||||
Reference in new issue
Block a user