#Ox_target
1 messages · Page 1 of 1 (latest)
oxtarget dosent use addtargetmodel and addentityzone
or see if u missing the target option in cfg.
u need to replace the addtargetmodel with addGlobalPed..
exports.ox_target:removeGlobalPed(optionNames)
and also change AddEntityZone with addEntity
exports.ox_target:addEntity(netIds, options)
There were couple of bridges out there to solve this issue just search and see
Ox compat, or something like that, can help for ppl without the knowledge to convert from qb to ox
How I fixed this (I wouldnt recommend this as support for qb related stuff from ox is no more)
- Got the qb bridge file from an earlier release of ox_target (Mine was version '1.14.0')
- Added it to the compat folder
- Added these lines in fxmanifest
'client/compat/qb-target.lua',
provide 'qb-target'
Im not saying this will work for you and all your issues, but for the qb-target functions i cant yet be arsed to convert, this is how you can work around it.
Not the best way, but works for me.
I use ox_compact
https://github.com/zf-labo/ox_compat
Not sure if was this one, or one similar.
At the time I didn't want change everything, so I use that until I switch one by one to ox.
This works with input, target, and menu, 3 in one, for lazy people like me🫣
Now i got something to work, but i got a new error
And its only when i try to use the shops that is build into the script
Soeh
the script you are using is or is not ready for ox_target ?
did u check if there is some missing dependencies?
what is causing the error ? what are you doing to trigger that ?
I am using a ped with a build in shop, and the shop doesenst work but everything els does
Did u have everything updated? What versions are you using?