LinkVehicleToInterior

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 15:03, 23 March 2010
MazaHACKa (Talk | contribs)
(link to russian version)
← Previous diff
Revision as of 04:46, 2 February 2014
Connor Mead (Talk | contribs)

Next diff →
Line 1: Line 1:
{{Scripting}} {{Scripting}}
-{{Title}} 
{{Description|Links the vehicle to the interior. This can be used for example for an arena/stadium.}} {{Description|Links the vehicle to the interior. This can be used for example for an arena/stadium.}}
Line 26: Line 25:
{{SetVehicleVirtualWorld}} {{SetVehicleVirtualWorld}}
{{SetPlayerInterior}} {{SetPlayerInterior}}
-[[ru:LinkVehicleToInterior]]+ 
[[Category:Scripting Functions]] [[Category:Scripting Functions]]
 +
 +[[fr:LinkVehicleToInterior]]
 +[[ru:LinkVehicleToInterior]]

Revision as of 04:46, 2 February 2014



Description:

Links the vehicle to the interior. This can be used for example for an arena/stadium.


Parameters:
(vehicleid, interiorid)
vehicleidVehicle ID (Not model)
interioridInterior ID


Return Values:

This function does not return any specific values.


Click here for a guide

Linking a static vehicle to an interior:

public OnGameModeInit()
{
    // other code...
    new vehicle1 = AddStaticVehicle(559,2543.7505,-21.8345,27.1899,52.6054,53,79);
    LinkVehicleToInterior(vehicle1, 6);
    // other code...
}

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

In other languages