Commission update

This commit is contained in:
jimathy authored and GitHub committed 2022-04-11 18:59:47 +01:00
1 parent 65f51520fb
commit f9029f0951
4 files changed
+66 -30

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ end)
RegisterNetEvent('jim-payments:Tickets:Menu', function()
local amount = nil
while amount == nil do QBCore.Functions.TriggerCallback('jim-payments:Ticket:Count', function(cb) amount = cb end) Citizen.Wait(1) end
local p = promise.new() QBCore.Functions.TriggerCallback('jim-payments:Ticket:Count', function(cb) p:resolve(cb) end) amount = Citizen.Await(p)
for k, v in pairs(Config.Jobs) do if k ~= PlayerJob.name then
else exports['qb-menu']:openMenu({
{ isMenuHeader = true, header = "🧾 "..PlayerJob.label.." Receipts 🧾", txt = "Do you want trade your receipts for payment?" },