added okokGasStation support

This commit is contained in:
Leesoldon committed 2025-01-08 14:37:56 +00:00
1 parent d2bc7ff921
commit 0f8e84d6d8
1 file changed
+12
+12
View File
@@ -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