From SA-MP Wiki
How to add cars to interiors / virtual worlds
This simple tutorial will help people that are new to PAWN scripting, on how to place cars in interiors AND virtual worlds.
For this tutorial I want to add a Bloodring Banger to the bloodbowl.
Naming the vehicle
Creating the vehicle
bloodring1 = AddStaticVehicleEx(504, -1394.20, 987.62, 1023.96, 0.0, -1, -1, 10);
Linking the vehicle into an interior / virtual world
First, link the vehicle to the interior by doing this:
You have linked the vehicle to interior 15. Now we'll set the vehicle's virtual world, by doing this:
So, we named the vehicle "bloodring1" and added it to interior 15.