#Qbx Radical menu issue

1 messages · Page 1 of 1 (latest)

upper panther
#

TypeError: Cannot read properties of undefined (reading 'split') (@ox_lib/web/build/assets/index-Biz8qect.js:40)
TypeError: Cannot read properties of undefined (reading 'split') [object Object] (@ox_lib/web/build/assets/index-Biz8qect.js:854)

shy girder
#

what version of ox_lib do you have?

is it stock or reskinned?

upper panther
#

I figured it out slightly

shy girder
#

what was it

upper panther
# shy girder 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

shy girder
#

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

upper panther
#

I just deleted both events and the medical stuff and it works for some people but not most with the same issue

#

Really odd

shy girder
#

what medical do you use?

upper panther
shy girder
#

oh perfect i do as well.

send me the section with your medical stuff

upper panther
shy girder
#

you deleted randol?

upper panther
#

Because we don’t need anything medical related to the radical we just need it work

#

With the basic stuff

shy girder
#

right, but right now it isnt working?

upper panther
shy girder
#

send what you have edited in the radial

upper panther
shy girder
#

so the whole radial isnt working at? for some?

upper panther
shy girder
#

do you have other ox lib issue or just radial

upper panther
#

Just that issue before

shy girder
#

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

upper panther
#

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

upper panther
#

Every serve restart it goes back to being broken and the error above

shy girder
#

sounds more like it might be in the wrong start order?

#

does ox start before or after qbx?

upper panther
#

Before qbx

#

Is that not how it’s supposed to be

shy girder
#

yea, it should be ox then qbx

upper panther
#

Every time restart it works fine

shy girder
#

seems like something somewhere is breeaking your ox lib which radial relys on

upper panther
shy girder
#

we need to find out what is triggering the error that is shown, so what is being done that cause it?

upper panther
#

Now I deleted that out of the radial menu

#

It worked temporarily

#

If the script restarts

shy girder
#

whats restarting the resource?

upper panther
#

It works when you restart the script

#

As mentioned

shy girder
#

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?

upper panther
#

I honestly don’t think I’m going to every figure this out

shy girder
#

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.

upper panther
#

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

shy girder
#

i dont have qbx medical and that works with myserver, i use randol_medical as well

upper panther
#

I mean I don’t understand what the issue is

shy girder
upper panther
#

Ill give it a try and let you know

shy girder
#

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]```
upper panther
#

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]

upper panther
#

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

shy girder
#

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

shy girder
#

start ox_lib before everything you dont need to move the actual file just

ensure ox_lib at the top

upper panther
#

I’ll give it a shot

upper panther
#

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

shy girder
#

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
upper panther
#

Okay well I won’t know for sure until a serve restart

shy girder
#

yea that SHOULD fix it hopefully

upper panther
upper panther
#

@shy girder yeh same issue

#

placed the load order you said still same issue

shy girder
#

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

upper panther
#

its weird as like i said ill restart the script and it works

shy girder
#

you restart radial?

upper panther
shy girder
#

do you have any errors on start up?

upper panther
#

retarted the script

#

works

#

like what

#

but if i leave and rejoin doesnt work

upper panther
shy girder
#

has it always done this?

upper panther
#

yeh since launch

shy girder
#

what changed prior to it erroring

#

ohhh

#

and stock oxlib was the same

upper panther
#

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?

shy girder
#

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]```
upper panther
#

Start order exactly like that so I’m not sure why it’s doing it

shy girder
#

hmmmm im stumped tbh.

upper panther
#

Absolutely no clue what to do

upper panther
#

Anyone else able to assist

jolly magnet
#

SO you changed the radialmenu and now its broken?

alpine marten
#

Your multicharacter/spawn script is it calling onplayerloaded correctly?

upper panther
upper panther
#

Yeh it should be no errors

alpine marten
#

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.

upper panther
radiant boltBOT
upper panther
alpine marten
#

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.

upper panther
#

If you ain’t gonna provide basic support then why are you even here like tf

alpine marten
#

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.

upper panther
jolly magnet
#

Kinda rude so we will no longer be helping you. Have a good life

upper panther
jolly magnet
#

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.

upper panther