InteriorCars
From SA-MP Wiki
Contents |
[edit]
How to add cars to interiors
This simple tutorial will help people that are new to PAWN scripting, on how to place cars in interiors.
For this tutorial I want to add a Bloodring Banger to the bloodbowl.
[edit]
Naming the vehicle
new bloodring1;
[edit]
Creating the vehicle
You can use AddStaticVehicle or AddStaticVehicleEx or CreateVehicle
bloodring1 = AddStaticVehicleEx(504, -1394.20, 987.62, 1023.96, 0.0, -1, -1, 10);
[edit]
Linking the vehicle into an interior
LinkVehicleToInterior (bloodring1, 15);
[edit]
Summary
So, we named the vehicle "bloodring1" and added it to interior 15.
Made by Mike
