Nah single player mods either (generally) use Script Hook V or Rage Hook - I know for sure the former uses the dinput8.dll injector, which, if in your game directory and you attempt to join GTA Online, you should be met with an error message about not being able to play online because you're attempting to run mods. I think that's the "incompatible assets" error, and you're just booted back into GTA V with no risk of a ban. Sorry never looked into RPH mods but they could dinput8 too.
I had just been repeating what others had said; I think even one of the developers of the Infamous menu even offered to help Rockstar out in that because they were fed up with what GTA Online had turned into. I could be wrong but apparently Rockstar Games made an attempt to patch the native "GET_PLAYER_ID" but that failed and a workaround was quickly found. Maybe there's other ways of doing stuff (invoker?) but there's certainly not unlimited ways.
As to why they haven't done anything more yet, well that's a good question too. Sadly in this world I can't say I would be surprised if the actual answer was "banned players re-purchase the game, so just keep detecting functions and menus rather than prevent them being used outright".
RPH is unstable, it crashes too many times and RPH also has a sh*t ton of files while Alex's SH is one file and the most stable ever.
I love playing GTAV with VisualV and so on. And as for Infamous, the devs keeps removing griefing features but they add more nice stuff
like enabling snow mode in GTAO This is handles by a tunable. If you only just select weather snow in 'Weathers' section, you'll miss a lot of the snow features
such as slippery handling, snow particles FX like footsteps and offroad dust which is white/grey like it should be and other stuff.
And yes, Infamous wanted to help R* to help.
However, those premium sh*t menu's such as Elusive, Epsilon and other cancerous sh*ts have been taken down but it happens sometimes
some salty crybaby still can crash players. So eh "damn u u noob, u keep killing me and now ai krash u, bye" Really? Get off of horsedick and enjoy
playing the game by actually playing it instead of crashing players when you suck at it...
Solo public session is the best to avoid these type of crybabies.