Requires moonloader and sampfuncs installed and working (you can remove the sampev things from the script if you dont want to use sampfuncs):
Moonloader can be found here: https://gtaforums.com/topic/890987-moonloader/
SAMPFUNCS can be found here: https://libertycity.net/files/gta-san-andreas/151974-sampfuncs-v.-5.4.1.-final.html
moonloader .lua script and .dll library that adds force feedback support to GTA SA, works in samp