LinkVehicleToInterior
From SA-MP Wiki
(Difference between revisions)
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.
(vehicleid, interiorid)
vehicleid | Vehicle ID (Not model) |
interiorid | Interior ID |
Return Values:
This function does not return any specific values.
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.
- SetVehicleVirtualWorld: Set the virtual world of a vehicle.
- SetPlayerInterior: Set a player's interior.