Scullyy / scully_emotemenu

An emote menu for the FiveM community.
GNU General Public License v3.0
76 stars 56 forks source link

Fix(attatch entity): Make sure player has entity control before attac… #42

Closed FjamZoo closed 7 months ago

FjamZoo commented 7 months ago

Since server created objects are random who entity control gets attatched to, we need to ask for entity control on the client when attatching the prop (Which is pretty bad but there's currently no FiveM server side alternative).

This will also fix this issue https://github.com/Scullyy/scully_emotemenu/issues/41

I also added the native "SetEntityIgnoreRequestControlFilter" which makes it possible to use scully_emotemenu with requestControlFilter on 4