#Qbx Radical menu issue
1 messages · Page 1 of 1 (latest)
what version of ox_lib do you have?
is it stock or reskinned?
I figured it out slightly
what was it
Well it’s partly fixed it’s basically we still had the ambulance part of the script within the radical menu
I’d presume it’s picking up things it uses from Qbx base scripts preventing it to work
As it’s still giving the error
yea ambulance relys on medical
but radial shouldnt fail because you dont have those, but you do need to change the event names to your new medical
Can’t I just delete it entirely?
I just deleted both events and the medical stuff and it works for some people but not most with the same issue
Really odd
what medical do you use?
Randol
oh perfect i do as well.
send me the section with your medical stuff
It’s been deleted randol
you deleted randol?
No the ambulance stuff was deleted from the radical
Because we don’t need anything medical related to the radical we just need it work
With the basic stuff
right, but right now it isnt working?
It is working but isn’t like for some people it is and some it isn’t
send what you have edited in the radial
For sure will be a tomorrow thing it’s 7am
so the whole radial isnt working at? for some?
yeh
do you have other ox lib issue or just radial
Nope
Just that issue before
that makes 0 sense to me, your radial looks fine very similar to mine
are you able to replicate the error? is it just certain people?
wouldnt make sense to work for some and not for others
Hey, So basically from what I gathered is this when I restart the script it works for everyone but if you relog it doesn’t and it comes up with that error above
The OX lib
Which is confusing
Could it be still using a export or something trying to find something
Honestly this issue is really confusing
Every serve restart it goes back to being broken and the error above
sounds more like it might be in the wrong start order?
does ox start before or after qbx?
Ox starts first
Before qbx
Is that not how it’s supposed to be
yea, it should be ox then qbx
Yeh that’s how it is
Every time restart it works fine
seems like something somewhere is breeaking your ox lib which radial relys on
Yeh how would I fix this
we need to find out what is triggering the error that is shown, so what is being done that cause it?
Well as mentioned before so the first issue was because it was trying to pick up QBX medical.
Now I deleted that out of the radial menu
It worked temporarily
If the script restarts
whats restarting the resource?
?
It works when you restart the script
As mentioned
according to your error it seems like some menu radial item or something is undefined that needs to be.
what version of ox lib do you have?
is it stock or edited?
Edited but it’s the same thing on stock we tried on our test server
I honestly don’t think I’m going to every figure this out
hmm
comparing yours to mine this is the only "major" difference
I have this
server/main.lua
local playerId = GetPlayerFromStateBagName(bagName)
--print('Values received -> ID:', bagName, '| DeadState:', value)
local deathState = value
TriggerClientEvent('radialmenu:client:deadradial', playerId, deathState) -- 2 is laststand value == 3 is for dead/onback
end)
-- qb-amublancejob compatibility
RegisterNetEvent('hospital:server:SetDeathStatus', function(isDead)
TriggerClientEvent('radialmenu:client:deadradial', source, isDead)
end)
yours is empty
this is defualt qbx_radial server/main.lua
local playerId = GetPlayerFromStateBagName(bagName)
TriggerClientEvent('radialmenu:client:deadradial', playerId, value == 2 or value == 3)
end)
-- qb-amublancejob compatibility
RegisterNetEvent('hospital:server:SetDeathStatus', function(isDead)
TriggerClientEvent('radialmenu:client:deadradial', source, isDead)
end)```
ive edited mine a bit to work for my server and such so sending you mine might make it worse lol.
Yeh I mean I don’t think it could be worse than not working aha
Completely honest I removed this as it’s a event to trigger the qbx medical stuff
Like I said I don’t know what the issue is at all
My ox lib is not really out of date and regardless it’s not a issue with ox lib
I don’t even think
i dont have qbx medical and that works with myserver, i use randol_medical as well
Yeh same
I mean I don’t understand what the issue is
this is mine your welcome to try it
Ill give it a try and let you know
the issue is you have some sort of race issue it seems to me
which mean sometimes radial loads faster than ox lib? i think
whats your server.cfg
this is how mine is set, i define ox_lib to make it start first
ensure qbx_core
ensure ox_target
ensure [ox]
ensure [qbx]```
my start order is this # Qbox & Extra stuff ensure okokloadingscreen ensure [mapping] ensure [matteodesign_north_yankton2] ensure [onx_peds] ensure [eup] ensure [vehicles] ensure illenium-appearance ensure ox_target ensure [ox] ensure [qbx] ensure um-spawn ensure [depends] ensure [standalone] ensure [sounds] ensure [voice] ensure [assets] ensure [scripting] ensure [ui] ensure [properties] ensure [weapons] ensure lvc_fleet ensure JD_logsV3 ensure zdiscord ensure [heists]
so im not sure why
okay so ive placed yours in my server and it works as i restarted the script but i leave now and rejoin it wont work
ill let you know now
try that first
ensure ox_lib at the top like this
ensure ox_lib
ensure okokloadingscreen
ensure [mapping]
ensure [matteodesign_north_yankton2]
ensure [onx_peds]
ensure [eup]
ensure [vehicles]
ensure illenium-appearance
ensure ox_target
ensure [ox]
ensure [qbx]
ensure um-spawn
ensure [depends]
ensure [standalone]
ensure [sounds]
ensure [voice]
ensure [assets]
ensure [scripting]
ensure [ui]
ensure [properties]
ensure [weapons]
ensure lvc_fleet
ensure JD_logsV3
ensure zdiscord
ensure [heists]```
im guessing you have ox_lib in [ox]
it has to start before nearly everything since 90% of resources in qbx rely on it
Yeh I have it in there
start ox_lib before everything you dont need to move the actual file just
ensure ox_lib at the top
I’ll give it a shot
Okay so yeh even yours does the same thing when you log out or the server restarts I still get this error UNLESS I restart the script
TypeError: Cannot read properties of undefined (reading 'split') (@ox_lib/web/build/assets/index-IEvnzdn5.js:40)
TypeError: Cannot read properties of undefined (reading 'split') [object Object] (@ox_lib/web/build/assets/index-IEvnzdn5.js:857)
TypeError: Cannot read properties of undefined (reading 'split') (@ox_lib/web/build/assets/index-IEvnzdn5.js:40)
TypeError: Cannot read properties of undefined (reading 'split') [object Object] (@ox_lib/web/build/assets/index-IEvnzdn5.js:857)
by script i mean QBX radial
yea im willing to bet its the ox_lib
setup like this
ensure qbx_core
ensure ox_target
ensure [ox]
ensure [qbx]```
you have a lot of stuff starting before ox and core
those are your important scripts you need to start first
Okay well I won’t know for sure until a serve restart
yea that SHOULD fix it hopefully
Restarting now gonna load back in see if it works if it doesn’t then I’m lost
wtf, you have something else going on then
if you have ox lib and core starting before everthing else you have something either broken, ox menu, alert something that is making ox lib fail on connect, orr something isnt clearing player cache on unload
its weird as like i said ill restart the script and it works
you restart radial?
do you have any errors on start up?
retarted the script
works
and
like what
but if i leave and rejoin doesnt work
no errors what relate to the radial no
has it always done this?
yeh since launch
ever since we first opened the server this has always been issue
for 2 months and this last week i have tried to figure out why
i mean this cant be a script stopping this right?
it could be. i guess, if its malformed and calling ox?
and your server.cfg looks like this now? cause it still sounds like a load order issue.
cause if you restart radial then it basically is starting it after its dependencies and it requires ox_lib and qbx_core
ensure ox_lib
ensure qbx_core
ensure ox_target
ensure [ox]
ensure [qbx]
ensure okokloadingscreen
ensure [mapping]
ensure [matteodesign_north_yankton2]
ensure [onx_peds]
ensure [eup]
ensure [vehicles]
ensure illenium-appearance
ensure um-spawn
ensure [depends]
ensure [standalone]
ensure [sounds]
ensure [voice]
ensure [assets]
ensure [scripting]
ensure [ui]
ensure [properties]
ensure [weapons]
ensure lvc_fleet
ensure JD_logsV3
ensure zdiscord
ensure [heists]```
Yeh exactly how you said
Start order exactly like that so I’m not sure why it’s doing it
hmmmm im stumped tbh.
Been trying to figure this out for 2 months
Absolutely no clue what to do
Anyone else able to assist
SO you changed the radialmenu and now its broken?
Your multicharacter/spawn script is it calling onplayerloaded correctly?
No it’s always been broken
Yet
Yeh it should be no errors
Doesn't mean that's it's being called.
Add prints in your multicharacter to see what's happening during spawn
Radialmenu isn't broken with default recipe. So it's 99% an issue in your scripts.
Yeh I mean it could be what would I add if you don’t mind me asking
Here, let me google that for you:
https://google.com/search?q=How do i add prints to lua code
Oh I know I’m just saying would would you like to put me in the prints
I already stated above what you need to check.
And if you can't even do a simple print. Self diagnosing will be hard.
No one here is gonna chew code for you.
No one expected that buts called support for a reason 😂😂
If you ain’t gonna provide basic support then why are you even here like tf
Heck if ya aint happy then GL with ya broken radial. It's called support.. But we expect you to have half a braincell. In this case that is missing.
Oh I do have half a brain cell mate it’s just common support and knowledge sorry I don’t sit on my PC 24 hours a day and touch grass man
Kinda rude so we will no longer be helping you. Have a good life
Ain’t rude just facts if you can’t have simple respect you’ll get it back
No it is fucking rude to come in here and expect us to do all the work for you. And then to get mad when we won't. SO how about you take your own advice and go touch grass cuase like i said nobody is gonna help you now.
No one asked to do work I asked for one request now your having a hissy feet I see the shit both you be talking on people who are straight up new