3 Optionen die bei mir nicht gehen wenn ich das Menü öffne.
Closed this issue · 17 comments
Die Informations Option und die Bills Option und die Company Option geht nicht bei mir bekomme immer ein Fehler.
[ 727453] [b2545_GTAProce] MainThrd/ error during NUI callback clickContext: citizen:/scripting/lua/scheduler.lua:739: ^1SCRIPT ERROR: citizen:/scripting/lua/scheduler.lua:739: ^1SCRIPT ERROR: @zrx_personalmenu/client/functions.lua:1561: bad argument #1 to 'for iterator' (table expected, got nil)^7
[ 727453] [b2545_GTAProce] MainThrd/ ^3> OpenBillMenu^7 (^5@zrx_personalmenu/client/functions.lua^7:1561)
[ 727453] [b2545_GTAProce] MainThrd/ ^3> ref^7 (^5@zrx_personalmenu/client/functions.lua^7:377)
[ 727453] [b2545_GTAProce] MainThrd/ ^7
[ 727468] [b2545_GTAProce] MainThrd/
[ 734093] [b2545_GTAProce] MainThrd/ error during NUI callback clickContext: citizen:/scripting/lua/scheduler.lua:739: ^1SCRIPT ERROR: citizen:/scripting/lua/scheduler.lua:739: ^1SCRIPT ERROR: @zrx_personalmenu/client/functions.lua:1650: attempt to index a nil value (local 'DATA_SOCIETY')^7
[ 734093] [b2545_GTAProce] MainThrd/ ^7
[ 734093] [b2545_GTAProce] MainThrd/
The framework ox isnt supported by the utility yet
Ok und was kann ich tun das es geht ?
Sorry i hope you can speak German my English is not the yellow from the egg xD
Ich habe das Framework esx nämlich deswegen Verstehe ich es nicht ganz wie ich es ändern kann.
Do you also have ox_core on your server?
No i use esx
Well, then the error wouldnt appear.
Bcs it says the error comes from the ox.lua, this lua is only loaded if you have a resource on your server called "ox_core".
Doesnt matter if its stopped or started
Thank you, now almost everything works except for the boss menu for jobs.
Is there actually an update soon where accessories like backpacks and so on will be added to the menu?
try to remove this line
Nope its not working.
BRIDGE.getSocietyObject = function(job)
local self = {}
self.job = job
self.money = self.getSocietyMoney()
self.getSocietyMoney = function()
local p = promise.new()
local money = 0
TriggerEvent('esx_addonaccount:getSharedAccount', 'society_' .. self.job, function(account)
money = account.money
p:resolve()
end)
Citizen.Await(p)
return money
end
self.addSocietyMoney = function(amount)
if not amount then
return 'fail', 'Invalid data passed'
end
TriggerEvent('esx_addonaccount:getSharedAccount', 'society_' .. self.job, function(account)
account.addMoney(amount)
end)
return 'success'
end
self.setSocietyMoney = function(amount)
if not amount then
return 'fail', 'Invalid data passed'
end
TriggerEvent('esx_addonaccount:getSharedAccount', 'society_' .. self.job, function(account)
account.setMoney(amount)
end)
return 'success'
end
self.removeSocietyMoney = function(amount)
if not amount then
return 'fail', 'Invalid data passed'
end
TriggerEvent('esx_addonaccount:getSharedAccount', 'society_' .. self.job, function(account)
account.removeMoney(amount)
end)
return 'success'
end
return self
end
you have to remove the line
I have but its not working
Hello,
Same problem
you have to remove the line
You can help us now ?
Latest Utility and personalmenu version fixes this.