#SCRIPT ERROR for ox _lib and ox_inventory

1 messages · Page 1 of 1 (latest)

unreal citrus
#

i keep trying to fix these but everytime i fix the brackets or something another thing pops up that i have to fix and i dont even know if i am fixing these things right and i have spent 3 hours doing this PLEASE HELP ME FIX THIS

last steeple
#

Hi, please provide your ox_inventory’s weapons.lua

#

And provide me the full photo of the script error

last steeple
unreal citrus
last steeple
#

I’m saying it’s not working?

unreal citrus
#

bc the invintory dosnt open ingame

last steeple
#

I’m saying there’s an issue and I need you to provide more info

last steeple
unreal citrus
#

oh

#

let me get that

last steeple
#

🙏

unreal citrus
last steeple
# unreal citrus

I need you to find the one that has errors for ox lib and ox inventory

#

Those aren’t errors that are causing issues for this script

#

Wait nvm I see it sorry

#

1 sec

unreal citrus
#

ok

last steeple
#

Are you able to wait a few hrs?

#

Or send me a photo on vsc?

#

Go to line 931 and send me a photo

#

— I’m on my phone and can’t see

unreal citrus
#

ok

last steeple
#

You have {}

#

Either delete the } and ensure there’s one at the bottom of your components or put your components inside that

#

Then you’ll be sweet

#

Syntax error

unreal citrus
#

this is what my components and weapons look like

last steeple
#

Yeah again

#

See how components has {}

#

Your issue is there

unreal citrus
#

ohhh

last steeple
#

So by the looks of it on my phone delete the }

#

And save and restart the server

unreal citrus
#

ok

#

i just restarte the server and for the ox_inventory this is what pops up

last steeple
#

Send me a photo of those lines In 1 screenshot

unreal citrus
last steeple
#

So at line 945 you need to have a comma after }

#

If that same error keeps popping up you need to add a comma at the respective lines

unreal citrus
#

the ox_inventory has this now

last steeple
#

What line did you update?

#

Send me a screenshot

unreal citrus
#

line 945 and line 929

last steeple
#

Why did you put a comma at line 929??

unreal citrus
#

i thought it needed one

#

i removed it and it gave me this

last steeple
#

Provide me line 2331

#

It’s telling you what you need to do btw

unreal citrus
#

it confuses me

last steeple
#

I’m guessing without seeing you either forgot a } or there isn’t one properly added

unreal citrus
#

but i am slowly figuring it out

last steeple
#

It would strongly assist you

unreal citrus
last steeple
#

I’m going to let you tell me what you think is wrong here

last steeple
unreal citrus
last steeple
#

see you’re learning 😊

#

The reason why you can’t do the bottom ones is due to the fact that you’re trying to return weapons and components. If you remove those curly brackets you will get an error

#

So now you just need to restart the server and you should - if all goes right should be done

unreal citrus
#

mmm ok

#

it still says this

last steeple
#

I’m guessing now (without seeing it fully) you need to hit enter before the return and add another }

#

— this process would usually be much faster but I am on my phone without vsc

unreal citrus
#

it looks like this now

last steeple
#

And add on line 2331 another }

unreal citrus
#

it worked

#

thank you so much for helping me fix this

last steeple
#

No problem at all. If you need anything else feel free to create another support ticket or dm me if no one responds