[Mod Menu] - Visual animations on target
What happened?
Basically there's a mod menu which makes everybody in the server have their hands up only visual to the modder and then it allows the modder to then rob any players via /steal specifically (ox_inventory) - not sure about other inventories. But on normal players screen their hands aren't actually up. I am not sure if its a native possibly GetActivePlayers() and looping through each player to force them to do hand up animation or a specific event possibly inside (rpemotes/dpemotes) they are using. I see IsEntityPlayingAnim() is only on client-side so i don't think there's a way on server side to validate an animation a player is doing, unless there is a native I am not seeing on docs.
Expected result
IsEntityPlayingAnim() on server side for validation (modders).
Reproduction steps
- None
Importancy
There's a workaround
Area(s)
FiveM, OneSync, Natives
Specific version(s)
FiveM (all)
Additional information
Video of a modder using it: https://www.youtube.com/watch?v=dgFCn4dZc7U&t=143s
This could be solved with better implementation on your end within the resource, f.eg. with a statebag on the player if they should be 'robbable'.