LinkVehicleToInterior

From SA-MP Wiki

Jump to: navigation, search

LinkVehicleToInterior


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


This function does not return a specific value.


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 might be useful as well, as they're related to this function in one way or another.

Personal tools