SA-MP Forums Archive
Vehicle question - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Vehicle question (/showthread.php?tid=273307)



Vehicle question - a_big - 01.08.2011

How can i make a vehicle show in a interior example liberty city without the car being invisible.


Re: Vehicle question - WoodPecker - 01.08.2011

Cars are not invisible in the liberty city, try to spawn a car at liberty city.


Re: Vehicle question - Basicz - 01.08.2011

Use

pawn Код:
SetVehicleInterior( vehicleid, interiorid );
Example I will use something like this :

pawn Код:
public OnPlayerInteriorChange( playerid, newinteriorid, oldinteriorid )
{
    if ( IsPlayerInAnyVehicle( playerid ) && GetPlayerState( playerid ) == PLAYER_STATE_DRIVER )
    {
        LinkVehicleToInterior( GetPlayerVehicleID( playerid ), GetPlayerInterior( playerid ) );
    }

    return 1;
}
@ WoodPecker, Liberty City is an interior, you need to set the vehicle interior first.


Re: Vehicle question - WoodPecker - 01.08.2011

Ye thanks Basicz , i was using this function but i forgot to post it here. +rep