Hello Lapperusers,
Here's a new version of LFSLapper that contains multiple new features.
Some of the features require LFS Version D50 or higher(Client and Host)
See the summary of changes below.
See you on the track.
EDIT: New LFSLapper.exe without debuglines.
https://www.lfs.net/forum/post/2067050#post2067050
                
                
                    
            Here's a new version of LFSLapper that contains multiple new features.
Some of the features require LFS Version D50 or higher(Client and Host)
See the summary of changes below.
See you on the track.
+---------------------------------------------------------------+
|Changes from 7.0.9.3 to 7.0.9.4
+---------------------------------------------------------------+
=================================================
New: 
=================================================
1: New Discord Feature MentionDiscordUser()
    
       $DiscordChannelID = "123456789";
    $DiscordUserID = "123456789";
    
    MentionDiscordUser($DiscordChannelID,$DiscordUserID);
   
2: New Function: GetListOfDirectories(); 
  #Get list of directories
        $ListOfDirectories = GetListOfDirectories("");
    
        #Get NumberOfDirectories
        $DirCount = $ListOfDirectories["NumberOfDirectories"];
    
        #Get through all the directories
        FOR($i = 0; $i < ToNum($DirCount); $i = $i + 1)
        
            $NameOfDir =  $ListOfDirectories[$i,"DirName"];
            $CreationDateOfDir =  $ListOfDirectories[$i,"DirCreated"];
            $LastAccessedOfDir =  $ListOfDirectories[$i,"DirAccessed"];
                
            privmsg("NameOfDir: ".$NameOfDir);
            privmsg("CreationDateOfDir: ".$CreationDateOfDir);
            privmsg("LastAccessedOfDir: ".$LastAccessedOfDir);
                
        ENDFOR
3: New Function: SetPlayerHandicap(); LFS Version (Client & Host) D50 or higher
   Set handicaps for multiple players at once, only when the player is On Track
    
   UserName are capital sensitive. 
   Mass value 0 - 200
   Intake value 0 - 50
   
   SetPlayerHandicap("UserName1:Mass:Intake,UserName2:Mass2:Intake");
   SetPlayerHandicap("Bass-Driver:200:50,finland69:100:10");
 
4: New Function: GetListPlayerHandicap(); LFS Version (Client & Host) D50 or higher
    This function executes Event: OnPlayerHandicap(), see below
 
5: New Event: OnPlayerHandicap(); LFS Version (Client & Host) D50 or higher
    #Event will execute when the players handicap has been changed by command or by insim: SetPlayerHandicap()
    #LFS Commands:
    #/h_mass username X - set added mass for user's car
    #/h_tres username X - set restriction for user's car
    
    #$userName = Username of player
    #$Flags: 1 = Mass Changed
    #$Flags: 2 = Intake Changed
    #$Flags: 3 = Both Handicaps Changed
    
    $H_Mass = Current value mass
    $H_Tres = Current value Intake restriction
    
   Event OnPlayerHandicap( $userName,$Flags,$H_Mass,$H_Tres)  # Player event
        globalmsg("Handicap has been changed");
        globalmsg("UserName: ".$userName);
        globalmsg("Flags: ".$Flags);
        globalmsg("Intake Res: ".$H_Tres);
        globalmsg("Mass: ".$H_Mass);
    EndEvent
=================================================
Update: 
=================================================    
  1: New buttonfunction: Display button in garage.
    I've been looking to display the button in the garagemenu
    I think its a nice workaround without breaking the buttonfunctions.
    
       Type the number 255 to the ButtonStyle parameter to display the button in the garage.
    
    Example:
    
    openPrivButton( "test",50,60,100,15,0,-1,32+64+255, "Test" );
    
=================================================
Fix: 
=================================================
  1: Potential fix for LFSlapper crash when modsystem isnt available from LFS.net
  
=================================================
Known Issues: 
================================================= 
  1: No encoded characters in (clickable) textbuttons
EDIT: New LFSLapper.exe without debuglines.
https://www.lfs.net/forum/post/2067050#post2067050
