LinkVehicleToInterior

Description

Links a vehicle to an interior. Vehicles can only be seen by players in the same interior (SetPlayerInterior).

NameDescription
vehicleidThe ID of the vehicle to link to an interior.
interioridThe Interior ID to link it to.

Returns

1: The function was executed successfully.

0: The function failed to execute. This means the vehicle does not exist.

Examples

public OnGameModeInit()
{
new vehicleId = AddStaticVehicle(559, 2543.7505, -21.8345, 27.1899, 52.6054, -1, -1);
LinkVehicleToInterior(vehicleId, 6);
}

Related Functions