Qbox-project / qbx_garages

GNU General Public License v3.0
8 stars 36 forks source link

feat: add optional drop point and draw markers #97

Closed Manason closed 5 months ago

Manason commented 5 months ago

Don't know why there are lint errors. Seems like creating a point from within a point is causing the issue somehow.

artur-michalak commented 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.

Manason commented 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.

In this case we have markers to show where the zone is

Manason commented 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.

Changed to lib zones sphere.

artur-michalak commented 5 months ago

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.