We have a private project. Looking for InSim coder. If you interested, pm me. 
                
            



<?php 
php
class pitInfo extends Plugins
{
    const URL = 'https://www.lfsforum.net/viewthread.php?p=1843616';
    const NAME = 'Pit Information';
    const AUTHOR = 'Your Name Here';
    const VERSION = '0.1.0';
    const DESCRIPTION = 'Pit Info Example Plugin';
    public $enumTyres = array(
        TYRE_R1 => 'R1',
        TYRE_R2 => 'R2',
        TYRE_R3 => 'R3',
        TYRE_R4 => 'R4',
        TYRE_ROAD_SUPER => 'Road Super',
        TYRE_ROAD_NORMAL => 'Road Normal',
        TYRE_HYBRID => 'Hybrid',
        TYRE_KNOBBLY => 'Knobbly'
    );
    public $playersTyres = array();
    public function __construct()
    {
        $this->registerPacket('onNewPlayer', ISP_NPL);
        $this->registerPacket('onPitEntry', ISP_PLA);
        $this->registerPacket('onPit', ISP_PIT);
        $this->registerPacket('onPitExit', ISP_PSF);
    }
    public function onNewPlayer(IS_NPL $NPL)
    {
        $this->playersTyres[$NPL->PLID] = $NPL->Tyres;
    }
    public function onPitEntry(IS_PLA $PLA)
    {
        print_r($PLA);
    }
    public function onPit(IS_PIT $PIT)
    {
        # Get Player Name
        $PName = $this->getPlayerByPLID($PIT->PLID)->PName;
        # Old Tyres
        $oLF = $this->enumTyres[$this->playersTyres[$PIT->PLID][0]];
        $oRF = $this->enumTyres[$this->playersTyres[$PIT->PLID][1]];
        $oLR = $this->enumTyres[$this->playersTyres[$PIT->PLID][2]];
        $oRR = $this->enumTyres[$this->playersTyres[$PIT->PLID][3]];
        # New Tyres
        $nLF = $this->enumTyres[$PIT->Tyres[0]];
        $nRF = $this->enumTyres[$PIT->Tyres[1]];
        $nLR = $this->enumTyres[$PIT->Tyres[2]];
        $nRR = $this->enumTyres[$PIT->Tyres[3]];
        # Print Output To Console
        console("{$PName} Changed Tyres To: {$nLF}, {$nRF}, {$nLR}, & {$nRR}; From: {$oLF}, {$oRF}, {$oLR}, & {$oRR}.");
    }
    public function onPitExit(IS_PSF $PSF)
    {
        print_r($PSF);
    }
}
?>