Server Name in plugin

The only way I know how to do this, is by extracting it from the actual server window.

You have to do an EnumWindows() to get a handle to the window matching the rFactor processId, and then retrieve the game name from the static text element.

Have a look at the source of my welcome plugin, I do something similar there to programmatically use chat feature: https://forum.studio-397.com/index.php?threads/welcome-message-plugin.30954/

Hi Tygernoot!

Your plugin works on the Dedicated server.
Do you have a way how to get this info in the clients as well ?

I need to know where is it connected...

Regards,
Mitya
 
Back
Top