Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update menu.lua #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 7 additions & 12 deletions client/menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ end

function OpenJailMenu()
local MyFirstPage = MainMenu:RegisterPage('first:page')
local JailID = 'val'
MyFirstPage:RegisterElement('header', {
value = _U('lawmenu'),
slot = "header",
Expand Down Expand Up @@ -214,10 +215,9 @@ function OpenJailMenu()
{ display = 'No', value = false }
},
}, function(data)
Autotele = data.value
Autotele = data.value.value

-- This gets triggered whenever the arrow selected value changes
print(TableToString(data.value))
end)


Expand All @@ -241,9 +241,8 @@ function OpenJailMenu()
{ display = _U('sisika'), value = "sk" },
},
}, function(data)
JailID = data.value
JailID = data.value.value
-- This gets triggered whenever the arrow selected value changes
print(TableToString(data.value))
end)

MyFirstPage:RegisterElement('button', {
Expand Down Expand Up @@ -314,9 +313,8 @@ function OpenFineMenu()
start = 1,
options = BankInfo.names
}, function(data)
bankname = data.value
bankname = data.value.value
-- This gets triggered whenever the arrow selected value changes
print(TableToString(data.value))
end)

MyFirstPage:RegisterElement('button', {
Expand Down Expand Up @@ -407,9 +405,8 @@ function OpenChoreMenu()
{ display = _U('choretype'), value = 'cont' }
}
}, function(data)
selectedchore = data.value
selectedchore = data.value.value
-- This gets triggered whenever the arrow selected value changes
print(TableToString(data.value))
end)

MyFirstPage:RegisterElement('button', {
Expand Down Expand Up @@ -773,9 +770,8 @@ AddEventHandler('bcc-law:HireEmployeeMenu', function(chardata, cabid)
start = 1,
options = elements
}, function(data)
persontohireid = data.value
persontohireid = data.value.value
-- This gets triggered whenever the arrow selected value changes
print(TableToString(data.value))
end)
MyFirstPage:RegisterElement('button', {
label = _U('hireselected'),
Expand Down Expand Up @@ -822,9 +818,8 @@ AddEventHandler('bcc-law:FireEmployeeMenu', function(players, cabid)
start = 1,
options = elements
}, function(data)
persontofireid = data.value
persontofireid = data.value.value
-- This gets triggered whenever the arrow selected value changes
print(TableToString(data.value))
end)
MyFirstPage:RegisterElement('button', {
label = _U('fireselected'),
Expand Down