mirror of
https://github.com/jimathy/jim-payments.git
synced 2026-08-17 06:16:02 +01:00
fix duplicate text entry for charging users
Apparently missed this completely, removed the duplicate text entry when not using the list option this should fix any issues with this
This commit is contained in:
@@ -62,13 +62,7 @@ RegisterNetEvent(getScript()..":client:Charge", function(data, outside)
|
||||
isRequired = true,
|
||||
required = true,
|
||||
name = 'citizen',
|
||||
label = locale("menu" ,"person_id"),
|
||||
text = locale("menu" ,"person_id")
|
||||
}
|
||||
newinputs[#newinputs+1] = {
|
||||
type = 'text',
|
||||
isRequired = true,
|
||||
name = 'citizen',
|
||||
label = locale("menu", "cus_id"),
|
||||
text = locale("menu", "cus_id")
|
||||
}
|
||||
end
|
||||
@@ -94,6 +88,10 @@ RegisterNetEvent(getScript()..":client:Charge", function(data, outside)
|
||||
|
||||
if dialog then
|
||||
if dialog[1] then -- if ox menu, auto adjust values
|
||||
if dialog[1] == "" then
|
||||
TriggerEvent(getScript()..":client:Charge", data, outside)
|
||||
return
|
||||
end
|
||||
dialog.citizen = dialog[1]
|
||||
dialog.billtype = dialog[2]
|
||||
dialog.price = dialog[3]
|
||||
@@ -105,7 +103,7 @@ end)
|
||||
|
||||
RegisterNetEvent(getScript()..":client:PayPopup", function(amount, biller, billtype, img, billerjob, gang, outside)
|
||||
local setimage = ""
|
||||
print(billerjob)
|
||||
|
||||
if not img then
|
||||
setimage = billerjob
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user