ThymonA / menuv

FiveM menu library for creating menu's with NUI
https://menuv.fivem.io/api/
GNU General Public License v3.0
114 stars 131 forks source link

Anticheat / Antiexploit feature #23

Open xDope7137 opened 3 years ago

xDope7137 commented 3 years ago

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?

ThymonA commented 3 years ago

I will think about a proper solution to fix those types of exploits.

Korioz commented 3 years ago

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.

Pesoen commented 3 years ago

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.

xDope7137 commented 3 years ago

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.

Pesoen commented 3 years ago

well it works for me, and is working as expected as far as i know..