---@diagnostic disable: duplicate-set-field
This commit is contained in:
1 parent
6bd3df2e80
commit
a1bd168994
1 file changed
+1
-3
@@ -1,3 +1,4 @@
|
||||
---@diagnostic disable: duplicate-set-field
|
||||
local resourceName = "lc_fuel"
|
||||
local configValue = BridgeClientConfig.Fuel
|
||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||
@@ -6,7 +7,6 @@ Fuel = Fuel or {}
|
||||
|
||||
---This will get the name of the Fuel being used (if a supported Fuel).
|
||||
---@return string
|
||||
---@diagnostic disable-next-line: duplicate-set-field
|
||||
Fuel.GetResourceName = function()
|
||||
return resourceName
|
||||
end
|
||||
@@ -14,7 +14,6 @@ end
|
||||
---This will get the fuel level of the vehicle.
|
||||
---@param vehicle number The vehicle entity ID.
|
||||
---@return number fuel The fuel level of the vehicle.
|
||||
---@diagnostic disable-next-line: duplicate-set-field
|
||||
Fuel.GetFuel = function(vehicle)
|
||||
if not DoesEntityExist(vehicle) then return 0.0 end
|
||||
return exports["lc_fuel"]:GetFuel(vehicle)
|
||||
@@ -24,7 +23,6 @@ end
|
||||
---@param vehicle number The vehicle entity ID.
|
||||
---@param fuel number The fuel level to set.
|
||||
---@return nil
|
||||
---@diagnostic disable-next-line: duplicate-set-field
|
||||
Fuel.SetFuel = function(vehicle, fuel, type)
|
||||
if not DoesEntityExist(vehicle) then return end
|
||||
return exports["lc_fuel"]:SetFuel(vehicle, fuel)
|
||||
|
||||
Reference in new issue
Block a user