added okokGasStation support
This commit is contained in:
1 parent
d2bc7ff921
commit
0f8e84d6d8
1 file changed
+12
@@ -0,0 +1,12 @@
|
||||
if GetResourceState('okokGasStation') ~= 'started' then return end
|
||||
Fuel = {}
|
||||
|
||||
Fuel.GetFuel = function(vehicle)
|
||||
if not DoesEntityExist(vehicle) then return 0.0 end
|
||||
return exports['okokGasStation']:GetFuel(vehicle)
|
||||
end
|
||||
|
||||
Fuel.SetFuel = function(vehicle, fuel, type)
|
||||
if not DoesEntityExist(vehicle) then return end
|
||||
return exports['okokGasStation']:SetFuel(vehicle, fuel)
|
||||
end
|
||||
Reference in new issue
Block a user