When im off duty as LEO, i get the LEO radial job menu. When i go on duty, i keep it but another one gets added aswell
#Radial Menu showing double job menu
1 messages · Page 1 of 1 (latest)
Im using randol_multijob, newest release on it. could that be the issue? or did i miss something in config/setup
Sounds like whatever script is adding the radial menu isn’t removing the old one on job switch
itd be qbx_policejob
i may not be on latest release though, ill update and come back
No i am on latest. thats weird
i have this issue too
Are you using the same multijob?
ys
ill test stuff and keep you updated
policejob isn’t released so quite likely it has bugs. Best thing to do would be to file a GitHub issue and then either create a PR or use a different policejob for the time being
it shows also in ambulance and im using wasabi ambulance
is radialmenu released?
Documentation for the Qbox Project
Alright
@exotic leaf @feral hinge You may run into issues but i did make a fix
One sec ill get you lines and all
qbx_radialmenu/client/main.lua add
if not onduty then return end
at line 145
Should look like this
very simple but i understand how it was overlooked
https://github.com/icarusmods/qbx_radialmenu
fork for if you dont want to do it
Do you mind making a PR?
Standby, let me figure out how
Not sure if i did it right, let me knowhttps://github.com/Qbox-project/qbx_radialmenu/pull/51
Like Tony commented onduty is never declared, think this is more related to the radial item's ID case sensitivity (jobinteractions vs jobInteractions) if you can test and confirm?
https://github.com/Qbox-project/qbx_radialmenu/blob/d1b622295d93907b6245be7c1cc7b6fc808da59e/client/main.lua#L345
I have no clue. i know that onduty is used in that file before (line 341 client/main.lua) and this does work. im using it and having no issues
The onDuty you are refering to in 341 is an arg for SetDuty event's callback, the onduty check you added in setupRadialMenu makes an early return before reaching addRadialItem since its nil
the proper fix is to replace jobInteractions with jobinteractions in SetDuty
okay, thank you for the input because tbh i’m really not sure about optimization or how it’s supposed to be done, i know this works and was just trying to make this work before my revamp launch in a few days 😂, i’ll make it proper in the morning. Thank you
please try the latest PR. I fixed the issue with the case for the menu IDs and used the proper onduty check