Add files via upload
This commit is contained in:
1 parent
6dd3d9f4fa
commit
6175bc7bcc
2 files changed
+24
No files matched your search
@@ -0,0 +1,12 @@
|
||||
if GetResourceState('BigDaddy-Fuel') ~= 'started' then return end
|
||||
Fuel = {}
|
||||
|
||||
Fuel.GetFuel = function(vehicle)
|
||||
if not DoesEntityExist(vehicle) then return 0.0 end
|
||||
return exports['BigDaddy-Fuel']:GetFuel(vehicle)
|
||||
end
|
||||
|
||||
Fuel.SetFuel = function(vehicle, fuel)
|
||||
if not DoesEntityExist(vehicle) then return end
|
||||
exports['BigDaddy-Fuel']:SetFuel(vehicle, fuel)
|
||||
end
|
||||
@@ -0,0 +1,12 @@
|
||||
if GetResourceState('esx-sna-fuel') ~= 'started' then return end
|
||||
Fuel = {}
|
||||
|
||||
Fuel.GetFuel = function(vehicle)
|
||||
if not DoesEntityExist(vehicle) then return 0.0 end
|
||||
return exports['esx-sna-fuel']:GetFuel(vehicle)
|
||||
end
|
||||
|
||||
Fuel.SetFuel = function(vehicle, fuel)
|
||||
if not DoesEntityExist(vehicle) then return end
|
||||
exports['esx-sna-fuel']:SetFuel(vehicle, fuel)
|
||||
end
|
||||
Reference in new issue
Block a user