Merge pull request #2 from midnightchronicles/main

added okokGasStation support
This commit is contained in:
MrNewb authored and GitHub committed 2025-01-08 09:41:23 -05:00
commit 4e28ee5793
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