From 4dbe6006808ae1964a35fbe64cc4c4425c43b1d9 Mon Sep 17 00:00:00 2001 From: jimathy Date: Sun, 3 Apr 2022 20:51:34 +0100 Subject: [PATCH] qb-management export update --- atmserver.lua | 3 --- client.lua | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/atmserver.lua b/atmserver.lua index 746fecd..4550458 100644 --- a/atmserver.lua +++ b/atmserver.lua @@ -17,9 +17,6 @@ QBCore.Functions.CreateCallback('jim-payments:ManageWrapper', function(source, c local result = nil if type == "GetAccount" then result = exports["qb-management"]:GetAccount(account) end if type == "GetGangAccount" then result = exports["qb-management"]:GetGangAccount(account) end - - print(type.." "..account.." "..result) - cb(result) end) diff --git a/client.lua b/client.lua index 3565bba..03f3a3f 100644 --- a/client.lua +++ b/client.lua @@ -27,9 +27,9 @@ RegisterNetEvent('jim-payments:client:Charge', function(data) local dist = #(GetEntityCoords(GetPlayerPed(v)) - GetEntityCoords(PlayerPedId())) for i = 1, #onlineList do if onlineList[i].value == GetPlayerServerId(v) then - -- if v ~= PlayerId() then + if v ~= PlayerId() then nearbyList[#nearbyList+1] = { value = onlineList[i].value, text = onlineList[i].text..' ('..math.floor(dist+0.05)..'m)' } - -- end + end end end dist = nil @@ -38,7 +38,7 @@ RegisterNetEvent('jim-payments:client:Charge', function(data) if nearbyList[#nearbyList] == nil then TriggerEvent("QBCore:Notify", "No one near by to charge", "error") return end local dialog = exports['qb-input']:ShowInput({ header = img..PlayerJob.label.." Cash Register", submitText = "Send", inputs = { - { text = " ", name = "citizen", type = "select", options = nearbyList }, + { text = " ", name = "citizen", type = "select", options = nearbyList }, { type = 'radio', name = 'billtype', text = 'Payment Type', options = { { value = "cash", text = "Cash" }, { value = "card", text = "Card" } } }, { type = 'number', isRequired = true, name = 'price', text = '💵 Amount to Charge' },} })