Closed Manason closed 5 months ago
I've made something similar in qbx_truckerjob. You might find it interesting in https://github.com/Qbox-project/qbx_truckerjob/blob/cd427f9c740520fb4bbf546de28048a8a5aed533/client/main.lua#L124-L171
The lib.zones.sphere is better than lib.points.new because you can display the zone in debug mode.
I've made something similar in qbx_truckerjob. You might find it interesting in https://github.com/Qbox-project/qbx_truckerjob/blob/cd427f9c740520fb4bbf546de28048a8a5aed533/client/main.lua#L124-L171
The lib.zones.sphere is better than lib.points.new because you can display the zone in debug mode.
In this case we have markers to show where the zone is
I've made something similar in qbx_truckerjob. You might find it interesting in https://github.com/Qbox-project/qbx_truckerjob/blob/cd427f9c740520fb4bbf546de28048a8a5aed533/client/main.lua#L124-L171
The lib.zones.sphere is better than lib.points.new because you can display the zone in debug mode.
Changed to lib zones sphere.
It would be useful to show the influence of the parking zone in dev mode. Also, using poly zones may be better for zones like parking lot. Using the spherical zone, the parking script can run when you drive on the road next to the parking lot.
Why do you use DrawMarker instead of lib.marker.new? Are you sure lib.points.sphere work? I cannot find it in the ox documentation and source code.
Don't know why there are lint errors. Seems like creating a point from within a point is causing the issue somehow.