If you’re getting this error
and you’re tearing your hair out trying to fix it (just like I was) then fear not! This fix should help if you’re a NVIDIA GPU user and use Shadowplay. It is just as simple as turning it off!
If you can’t find how to turn it off just open your system tray
and right click the NVIDIA icon then click ‘Open NVIDIA GeForce Experience’
Once in the control panel for NVIDIA GeForce Experience click the toggle for ‘SHARE’
It should then look like this
Now reboot FiveM and see if it works!
If it still proceeds to fail I would try fresh installing and if it STILL doesn’t work try verifying your game files, rebooting PC and fresh installing.
If it doesn’t work after that, try the other fixes again.