Skip to content

Commit

Permalink
ability to change total cost string in config
Browse files Browse the repository at this point in the history
  • Loading branch information
InZidiuZ committed Jun 12, 2019
1 parent ae5a120 commit f0b7610
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ Config.Strings = {
NotEnoughCash = "Not enough cash",
RefillJerryCan = "Press ~g~E ~w~ to refill the jerry can for ",
NotEnoughCashJerryCan = "Not enough cash to refill jerry can",
JerryCanFull = "Jerry can is full"
JerryCanFull = "Jerry can is full",
TotalCost = "Cost",
}

if not Config.UseESX then
Expand Down
2 changes: 1 addition & 1 deletion source/fuel_client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ AddEventHandler('fuel:refuelFromPump', function(pumpObject, ped, vehicle)
local extraString = ""

if Config.UseESX then
extraString = "\nCost: ~g~$" .. Round(currentCost, 1)
extraString = "\n" .. Config.Strings.TotalCost .. ": ~g~$" .. Round(currentCost, 1)
end

DrawText3Ds(stringCoords.x, stringCoords.y, stringCoords.z + 1.2, Config.Strings.CancelFuelingPump .. extraString)
Expand Down

0 comments on commit f0b7610

Please sign in to comment.