standard name returns in fuel

module.GetFuelName      moved to --------------> Module.GetResourceName
This commit is contained in:
MrNewb committed 2025-04-28 09:00:45 -04:00
1 parent 8efb869dbe
commit 9881292602
13 files changed
+16 -13

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ Fuel = Fuel or {}
---This will get the name of the Fuel being used (if a supported Fuel). ---This will get the name of the Fuel being used (if a supported Fuel).
---@return string ---@return string
Fuel.GetFuelName = function() Fuel.GetResourceName = function()
return 'default' return 'default'
end end
---This will get the fuel level of the vehicle. ---This will get the fuel level of the vehicle.
+1 -1
View File
@@ -6,7 +6,7 @@ Fuel = Fuel or {}
---This will get the name of the Fuel being used (if a supported Fuel). ---This will get the name of the Fuel being used (if a supported Fuel).
---@return string ---@return string
Fuel.GetFuelName = function() Fuel.GetResourceName = function()
return resourceName return resourceName
end end
+1 -1
View File
@@ -6,7 +6,7 @@ Fuel = Fuel or {}
---This will get the name of the Fuel being used (if a supported Fuel). ---This will get the name of the Fuel being used (if a supported Fuel).
---@return string ---@return string
Fuel.GetFuelName = function() Fuel.GetResourceName = function()
return resourceName return resourceName
end end
+1 -1
View File
@@ -6,7 +6,7 @@ Fuel = Fuel or {}
---This will get the name of the Fuel being used (if a supported Fuel). ---This will get the name of the Fuel being used (if a supported Fuel).
---@return string ---@return string
Fuel.GetFuelName = function() Fuel.GetResourceName = function()
return resourceName return resourceName
end end
+4 -1
View File
@@ -6,13 +6,15 @@ Fuel = Fuel or {}
---This will get the name of the Fuel being used (if a supported Fuel). ---This will get the name of the Fuel being used (if a supported Fuel).
---@return string ---@return string
Fuel.GetFuelName = function() ---@diagnostic disable-next-line: duplicate-set-field
Fuel.GetResourceName = function()
return resourceName return resourceName
end end
---This will get the fuel level of the vehicle. ---This will get the fuel level of the vehicle.
---@param vehicle number The vehicle entity ID. ---@param vehicle number The vehicle entity ID.
---@return number fuel The fuel level of the vehicle. ---@return number fuel The fuel level of the vehicle.
---@diagnostic disable-next-line: duplicate-set-field
Fuel.GetFuel = function(vehicle) Fuel.GetFuel = function(vehicle)
if not DoesEntityExist(vehicle) then return 0.0 end if not DoesEntityExist(vehicle) then return 0.0 end
return exports["lc_fuel"]:GetFuel(vehicle) return exports["lc_fuel"]:GetFuel(vehicle)
@@ -22,6 +24,7 @@ end
---@param vehicle number The vehicle entity ID. ---@param vehicle number The vehicle entity ID.
---@param fuel number The fuel level to set. ---@param fuel number The fuel level to set.
---@return nil ---@return nil
---@diagnostic disable-next-line: duplicate-set-field
Fuel.SetFuel = function(vehicle, fuel, type) Fuel.SetFuel = function(vehicle, fuel, type)
if not DoesEntityExist(vehicle) then return end if not DoesEntityExist(vehicle) then return end
return exports["lc_fuel"]:SetFuel(vehicle, fuel) return exports["lc_fuel"]:SetFuel(vehicle, fuel)
+1 -1
View File
@@ -6,7 +6,7 @@ Fuel = Fuel or {}
---This will get the name of the Fuel being used (if a supported Fuel). ---This will get the name of the Fuel being used (if a supported Fuel).
---@return string ---@return string
Fuel.GetFuelName = function() Fuel.GetResourceName = function()
return resourceName return resourceName
end end
+1 -1
View File
@@ -6,7 +6,7 @@ Fuel = Fuel or {}
---This will get the name of the Fuel being used (if a supported Fuel). ---This will get the name of the Fuel being used (if a supported Fuel).
---@return string ---@return string
Fuel.GetFuelName = function() Fuel.GetResourceName = function()
return resourceName return resourceName
end end
+1 -1
View File
@@ -6,7 +6,7 @@ Fuel = Fuel or {}
---This will get the name of the Fuel being used (if a supported Fuel). ---This will get the name of the Fuel being used (if a supported Fuel).
---@return string ---@return string
Fuel.GetFuelName = function() Fuel.GetResourceName = function()
return resourceName return resourceName
end end
+1 -1
View File
@@ -6,7 +6,7 @@ Fuel = Fuel or {}
---This will get the name of the Fuel being used (if a supported Fuel). ---This will get the name of the Fuel being used (if a supported Fuel).
---@return string ---@return string
Fuel.GetFuelName = function() Fuel.GetResourceName = function()
return resourceName return resourceName
end end
+1 -1
View File
@@ -6,7 +6,7 @@ Fuel = Fuel or {}
---This will get the name of the Fuel being used (if a supported Fuel). ---This will get the name of the Fuel being used (if a supported Fuel).
---@return string ---@return string
Fuel.GetFuelName = function() Fuel.GetResourceName = function()
return resourceName return resourceName
end end
+1 -1
View File
@@ -6,7 +6,7 @@ Fuel = Fuel or {}
---This will get the name of the Fuel being used (if a supported Fuel). ---This will get the name of the Fuel being used (if a supported Fuel).
---@return string ---@return string
Fuel.GetFuelName = function() Fuel.GetResourceName = function()
return resourceName return resourceName
end end
+1 -1
View File
@@ -6,7 +6,7 @@ Fuel = Fuel or {}
---This will get the name of the Fuel being used (if a supported Fuel). ---This will get the name of the Fuel being used (if a supported Fuel).
---@return string ---@return string
Fuel.GetFuelName = function() Fuel.GetResourceName = function()
return resourceName return resourceName
end end
+1 -1
View File
@@ -6,7 +6,7 @@ Fuel = Fuel or {}
---This will get the name of the Fuel being used (if a supported Fuel). ---This will get the name of the Fuel being used (if a supported Fuel).
---@return string ---@return string
Fuel.GetFuelName = function() Fuel.GetResourceName = function()
return resourceName return resourceName
end end