altmp / altv-issues

Issues and roadmap for alt:V project
93 stars 17 forks source link

altV Native isPointOnRoad -> return Problem #867

Closed RysonTV closed 3 years ago

RysonTV commented 3 years ago

Client/server version Build 2.23, branch release

Current behavior Native isPointOnRoad always returns false. https://natives.altv.mp/#/0x125BF4ABFC536B09

Expected behavior Should return true, when user stays on road

Steps to reproduce https://pastebin.com/49qrjvZq

Context (environment) I want to detect if a player tries to plant an object on streets.

Possible solution Dunno

LeonMrBonnie commented 3 years ago

You should check if this also happens on other GTA MP mods or singleplayer, I assume this is not an alt:V problem, because alt:V does not do modifications to the natives that would cause that.

RysonTV commented 3 years ago

Ok thank you for the quick response

deluvas1911 commented 3 years ago

I'm using this native and always get reliable results from it. Even with your snippet. Can you show more context how you call it? (example positions e.g.)

RysonTV commented 3 years ago

seems to work now with undefined. Issue can be closed. Thanks and sorry for the entrance