A simple and lightweight resource that will create a target box and give the ability to play a gavel sound effect to all nearby players. I originally had all of the detection logic client side, but I moved it to server side as a better practice.
I’m quite new to creating resources so if something is pants on head silly please let me know.
ox_target has compatibility with qb-target and is a lot more functional, so if you made the switch you wouldn’t lose anything. Worth the upgrade but that’s just the opinion of a passerby
You’d benefit a lot from the switch, check out Qbox if you want to do that.
They took qbcore, integrated ox into it, and then refactored QBCore + resources. It also has a compatibility layer which lets your QB resources work with it.
I’ve been running a qbox server for a new months now and I’m running a mix of qb-core and qbox resources with no problems with my older qb-core resources.