SA-MP Forums Archive
adding cars to interior??? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: adding cars to interior??? (/showthread.php?tid=291896)



adding cars to interior??? - jtweak - 21.10.2011

how would i go about adding cars to an interior, im new to scripting....in my scriptfiles under businesses (thats how i got the interior through /createbusiness) there is my business file that i want to add cars to, here this is,


BusinessName Stadium (Bloodbowl)
BusinessX 87.986228
BusinessY 3527.901123
BusinessZ 9.522457
BusinessType 26
BusinessLevel 1
LastTransaction 213
Owned Yes
Owner marshall_mathers

i found out through t/loc that it is world 1000 and interior 15, please help me,
best regards,
jtweak


Re: adding cars to interior??? - a_big - 21.10.2011

https://sampwiki.blast.hk/wiki/LinkVehicleToInterior


Re: adding cars to interior??? - jtweak - 22.10.2011

i tried that it didn't work


Re: adding cars to interior??? - dr.pepper - 22.10.2011

Note: Replace "vIDHERE" with your vehicle model.

pawn Код:
new Bloodbowl = CreateVehicle(vIDHERE,87.986228,3527.901123,9.522457,-1,-1,-1);
SetVehicleVirtualWorld(Bloodbowl, 1000);
LinkVehicleToInterior(Bloodbowl, 15);