From f0b7610a25871d9f1f95adca03ed0c23d67c2ec4 Mon Sep 17 00:00:00 2001 From: InZidiuZ Date: Wed, 12 Jun 2019 15:08:09 +0200 Subject: [PATCH] ability to change total cost string in config --- config.lua | 3 ++- source/fuel_client.lua | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config.lua b/config.lua index eb0b8f2..4bd9dc2 100644 --- a/config.lua +++ b/config.lua @@ -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 diff --git a/source/fuel_client.lua b/source/fuel_client.lua index 27a2635..2b52403 100644 --- a/source/fuel_client.lua +++ b/source/fuel_client.lua @@ -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)