Open xDope7137 opened 3 years ago
I will think about a proper solution to fix those types of exploits.
I don't think that's from menuv
side to be fixed, actually should do proper server-side check for player position and things like that so people can't spawn a vehicle from a garage menu while being far from the location.
if you use a marker position to get the menu to show(esx style with some marker showing you there is something there) you can just add another check for distance, so it will call the MenuV:CloseMenu(menu) thingy, so it closes when the player gets far enough away.
late reply, but that's how i would do it.. and it's still open.
if you use a marker position to get the menu to show(esx style with some marker showing you there is something there) you can just add another check for distance, so it will call the MenuV:CloseMenu(menu) thingy, so it closes when the player gets far enough away.
late reply, but that's how i would do it.. and it's still open.
Actually, MenuV:CloseMenu(menu) doesn't actually work. I already tried and it was also reported by someone else.
I don't know if it was fixed after that. But it wasn't work at the time I was working on that.
well it works for me, and is working as expected as far as i know..
I would like if the menu closes after certain time? Because people might keep the menu for example garage. If they keep the garage menu open and basically teleport back to the garage by pressing enter?