itsjustcurtis / MenyooSP

[or Menyoo PC] - Trainer/mod menu for Grand Theft Auto V (single-player).
https://www.gta5-mods.com/scripts/menyoo-2-0
GNU General Public License v3.0
36 stars 7 forks source link

Suggestions #37

Open TayMcKenzieNZ opened 5 months ago

TayMcKenzieNZ commented 5 months ago

There's a native called IsPedSwimming which I think you could use to determine if the player is in water, which could be a good idea when attempting to spawn water animals; in the popular FiveM menu, vMenu, there's a warning that if you spawn sea creatures on land, you may get stuck in an indefinite death trap of constantly dying and respawning.

By using the native, you could detect if the player is swimming or not, and it they ain't, it could show a message saying "Denied. You must be in water to select this animal" and then in the code, you tell it what those sea creatures are.

I think what may also be a good idea, is if the player has attached an object to themselves, check whether or not IS_PED_IN_ANY_VEHICLE, if they are, disable the object's collision, otherwise the vehicle collision and the object collision collide and you end up spinning around like crazy and your game possibly crashing.

Also if there's a way to skip over the HSW and Gen9 content that would probably be beneficial. Not as in 39, 41 but as in like, not show them at all in the menu.