LFS Mods
Friday, 2024.11.22,   07:42   Welcome, Guest | RSS
[ Updated threads · New messages · Members · Forum rules · Search · RSS ]

OutGauge & OutSim - Forum

  • Page 1 of 1
  • 1
OutGauge & OutSim
@ Admin Male Date: Wednesday, 2023.01.18, 15:45 | Message # 1
Admin
LFS Mods Team
Group: Administrators
Posts: 91
Awards: 0
Reputation: 58
Status: Offline
Using OutGauge (or OutSim) is just as simple! This example prints the currently viewed car's RPM to the console.

Code
OutGauge outgauge = new OutGauge();

// Attach OutGauge packet event
outgauge.PacketReceived += (sender, e) => {
    Console.WriteLine(e.RPM);
};

// Start listening for packets
outgauge.Connect("127.0.0.1", 30000);


You can find many more examples and information about using the library in the documentation wiki.
(¯·._.·(¯°·._.·°º*[ LFS MODS ]*º°·._.·°¯)·._.·¯)
 
  • Page 1 of 1
  • 1
Search: