LinkVehicleToInterior
From SA-MP Wiki
LinkVehicleToInterior
Links the vehicle to the interior. This can be used for example for an arena/stadium.
(vehicleid, interiorid)
| vehicleid | Vehicle ID (Not model) |
| interiorid | Interior ID |
This function does not return a specific value, it's best to simply ignore it.
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.
- SetVehicleVirtualWorld: Set the virtual world of a vehicle.
- SetPlayerInterior: Set a player's interior.
