#qb-core

1 messages Ā· Page 1 of 1 (latest)

fading rose
#

Hello does anyone know how to fix the hasitem for ox_inventory

#

to fix the issue i tried ```function QBCore.Functions.HasItem(items, amount)
return exports.ox_inventory:GetItemCount(items) >= (amount or 1)
end

#

but i get a black screen

#

and ideas

final lotus
#

Are you using this ox_inventory

terse geyserBOT
#
Ox Inventory
šŸ“¦ Features

• Full QB-Core support
• Optional QoL features like rarity indicators
• Actively maintained and updated

fading rose
#

Yes

#

I have that inventory

#

You linked

final lotus
#

What is your load order?

fading rose
#

What do you mean

sturdy raven
fading rose
#

1 sec

#

i can show you

#
restart [okok]
restart okokChatV2

ensure lation_ui
ensure env
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap
ensure baseevents
start ElectronAC
ensure oxmysql
ensure ox_lib
ensure menuv
ensure qb-core
ensure okokChatV2
esnure cd_bridge
ensure illenium-appearance
ensure [Depends]
ensure [qb]
ensure ox_target
ensure ox_inventory
ensure [ox]
ensure [standalone]
ensure [defaultmaps]
ensure chat
ensure [MLO]
ensure [Lation]
ensure cfx-nteam-mapdata
ensure cfx-nteam-monorail-map
ensure cfx-nteam-legion2
ensure cfx-nteam-fleeca
ensure cfx-nteam-police
ensure cfx-nteam-hospital
ensure [EUP]
ensure [CustomClothes]
ensure zpack_repl
ensure zpack_1
ensure zpack_2
ensure zpack_3
ensure zpack_4
ensure zpack_5
ensure [voice]
ensure cd_dispatch
ensure [Cars]
ensure [nolag]
ensure player-data
ensure [gamemodes]
ensure [system]
ensure alecjersey
ensure [Jobs]
ensure [nolag]
ensure [codewave]
ensure [managers]
ensure [jg]
ensure [Jaksam]
ensure [Drugs]
ensure [LGRP GANGS]
ensure [local]
ensure [LB]
ensure cfx-nteam-monorail-script
ensure um-multicharacter
ensure [Standalone2]
ensure [Standalone3]
ensure [Weapons]
ensure [Loading]
ensure my-gangs
ensure kyros-weapon-pack-female
ensure kyros-weapon-pack-police```
sturdy raven
#

did u follow this video? i think your load order is incorrect

fading rose
#

i can look

gloomy wadi
#

[nolag] is getting ensured twice, remove one of them. Doesn't affect ur problem with the error but just fix that lol please

#

and why do you use "start" instead of ensure for ElectronAC?

#

You should use your folders more effectivley in my personal opinion

[Clothes]
[MLO]
[qb]
[standalone]
[voice]
[cars]
[misc]

Divide all of them into this, makes ur .cfg alot cleaner and stuff will be more easy to start

fading rose
#

like orginize them

gloomy wadi
#

yes. please šŸ˜›

fading rose
#

ok

#

i was deving for my friend and he had it like that

#

i normally have them organized

fading rose
#

Question

#

i have ElectronAC

#

where should that be ensureed at

#

anywhere

#

just wandering what you thing

sturdy raven
#

Never heard of that anti cheat. They should tell you where. I usually start it last my anti cheat’s I use

gloomy wadi
fading rose
#

it jsut tells you in the doc start ElectronAC

fading rose
#

Would you know why my inventory aint starting

#

i wa organizing the files and cfg to look better

#

and i have it like this ensure env ensure mapmanager ensure chat ensure okokChatV2 ensure spawnmanager ensure sessionmanager ensure basic-gamemode ensure hardcap ensure baseevents ensure ElectronAC ensure oxmysql ensure menuv ensure [Depends] ensure ox_lib ensure qb-core ensure [qb] ensure ox_target ensure ox_inventory ensure [ox] ensure [standalone] ensure [Standalone2] ensure [Standalone3] ensure [LB] ensure [misc] ensure [Maps] ensure [defaultmaps] ensure chat ensure [EUP] ensure [voice] ensure [Cars] ensure player-data ensure [gamemodes] ensure [system] ensure alecjersey ensure [codewave] ensure [managers] ensure [Drugs] ensure [local] ensure [Weapons] ensure [Loading] ensure my-gangs ensure kyros-weapon-pack-female ensure kyros-weapon-pack-police

sturdy raven
#

Yep your load order looks incorrect.

#

I personally can’t help further as I’ve given you the link on what to do and as you’re intermediate you should know how load orders work

final lotus
grim drift
#

Pro tip you can make comments in your server cfg with a hashtag. Or even make multiple CFGs and you would execute them with ā€œexec (name of your cfg)ā€ this’ll help you a lot with making everything clearer

ebon zinc
#

Fivem Developer
šŸ™‚ the title has lost the plot