When you use exports.ox_target:addSphereZone it will return an ID.
It’s that ID you need to use on the exports.ox_target:removeZone
Example:
local varTest = exports.ox_target:addSphereZone({ .....
exports.ox_target:removeZone(varTest )
When you use exports.ox_target:addSphereZone it will return an ID.
It’s that ID you need to use on the exports.ox_target:removeZone
Example:
local varTest = exports.ox_target:addSphereZone({ .....
exports.ox_target:removeZone(varTest )
Thanks!
Im about to update my core and inventory from an older version. I am thinking about updating to
Ox target but wonder what challenges Ill come across while converting from qbtarget.
Can anyone offer some insight on converting over?
Can you cook too? See vrp
Let me know how it goes, I am considering this as well.
i did it and almost everything is done for you since ox is mostly backwards compatible with qb-target. theres was only like 3 targets i had to change
i havent changed over yet , i gotta make sure all my important encrypted scripts can config to it
Theres backwards compatability to a certain extent, try it out we did and do not regret it
Hey, i have an error with the car detection. When i get out and any other goes in and i open a door, it close instantly. I think its not supposed to do it. Same with a stretcher and a person on it. You cant open it anymore. It closes instantly. Any chance to get a fix for it?
Does anyone know of a standalone police interaction menu (cuff, grab/drag, put in car, etc…) menu that works with Ox-Target? I’ve been searching the forums but they are painfully difficult to find anything in.
Just started testing OX_target on our server, but for some reason the Time % crawl up, is that normal? we had it up on 20-30% with out useing the target, and over 50% when holding the target button down?
Thx for replying,
Going to take an extra look, since we love the ox_target, just got surprised it crawled up like that, when my character just standing still.
How can i enable the interaction locations when i have my third eye open?
how the deactivate the Perfect Timing minigame?
Great script but 2 questions.
How do i make so that its only accessible outside a Vehicle?
Refueling wise, i have the option to “Refuel”, when i start it disappears and only appears “Cancel”, and when “Cancel” is pressed the “Refuel” appears again and the “Cancel” disappears. Is it possible ?
Edit
No need, managed to find it out.
Script is awesome btw !!!
Good morning everyone, I’m facing a major problem with different versions tested, the ATMs on the wall are not recognized and therefore pointable except for the actually physical ones like the one in the shop near the vanilla one, do any of you know how to solve this problem?
Not Working
Blame NVE.
Thanks for the reply, is there a way to solve it? Even modifying the NVE?
hey, a mate of mine occasionally has the problem that OX Target doesn’t work for him. No matter which button he puts it on, it doesn’t trigger. F8 console says the following:
Yesterday: ‘No entity with id “0” exists
today: Script Error @ox_target/client/api_lua:257 attempt to index a nil value (field ‘integer index’)
Now and then it works and then it doesn’t. Any idea what the reason is?