Skip to content

Commit

Permalink
fix: bpt_ambulancejob\client\job.lua variable billing is never set
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Jun 7, 2024
1 parent e3f7b6f commit 5a60e5b
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions server-data/resources/[bpt_addons]/bpt_ambulancejob/client/job.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local CurrentAction, CurrentActionMsg, CurrentActionData = nil, "", {}
local CurrentAction, CurrentActionMsg, CurrentActionData, billing = nil, "", {}, {}
local HasAlreadyEnteredMarker, LastHospital, LastPart, LastPartNum
local isBusy, deadPlayers, deadPlayerBlips, isOnDuty, vehicle = false, {}, {}, false, {}
isInShopMenu = false
local isInShopMenu = false

function OpenAmbulanceActionsMenu()
local elements = {
Expand Down Expand Up @@ -122,7 +122,6 @@ function OpenMobileAmbulanceActionsMenu()
end

-- billing
local billing

if billing == "billing" then
ESX.UI.Menu.Open("dialog", GetCurrentResourceName(), "billing", {
Expand All @@ -137,13 +136,8 @@ if billing == "billing" then
if closestPlayer == -1 or closestDistance > 3.0 then
ESX.ShowNotification(TranslateCap("no_players_near"))
else
TriggerServerEvent(
"esx_billing:sendBill",
GetPlayerServerId(closestPlayer),
"society_ambulance",
"Ambulance",
amount
)
TriggerServerEvent("esx_billing:sendBill", GetPlayerServerId(closestPlayer), "society_ambulance",
"Ambulance", amount)
ESX.ShowNotification(TranslateCap("billing_sent"))
end
end
Expand Down

0 comments on commit 5a60e5b

Please sign in to comment.