Have you tried playing the game in single player?(From the game shortcut , not mta) Does the problem still occur?
Also if you have any type of virtual joysticks installed such as vjoy , try uninstalling them. The virtual joysticks often cause problems like these in games.