SA-MP Forums Archive
LinkVehicleToInterior - 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: LinkVehicleToInterior (/showthread.php?tid=490663)



LinkVehicleToInterior - ombre - 27.01.2014

Hello,

In Gamemodeinit() I use:

veh1 = AddStaticVehicleEx(467,-1435,-595,1056,96.287696,-1,-1,3600);
LinkVehicleToInterior(veh1, 4);

but sometimes the vehicle ( respawn ) fall and it going until z = 0 ( sa map no interior ) and is invicible , how to resolve it.

Regards


Re : LinkVehicleToInterior - ombre - 28.01.2014

up please


Re : LinkVehicleToInterior - ombre - 29.01.2014

up plz


Re: LinkVehicleToInterior - newbienoob - 29.01.2014

try with createvehicle


Re: LinkVehicleToInterior - AlonzoTorres - 29.01.2014

Why do you have -1 on the colors of the addstaticvehicle?


Re : LinkVehicleToInterior - ombre - 01.02.2014

color -1 so random but it's not the problem


Respuesta: LinkVehicleToInterior - Cepillado300 - 01.02.2014

First, you need to use CreateVehicle.

Second, you need to put -1 in the last argumment, as in:
veh1 = AddStaticVehicleEx(467,-1435,-595,1056,96.287696,-1,-1,-1);

That way it doesn't despawn if you get out of it for too long

And third, make sure you are linking it to the right interior, otherwise, it would look invisible


Re: LinkVehicleToInterior - Mic_H - 01.02.2014

Its working fine in ma server.. I tried respawning it..
Quote:

veh1 = AddStaticVehicleEx(467,-1435,-595,1056,98.287696,-1,-1,3600);
LinkVehicleToInterior(veh1, 4);

Try increasing the Z-Coordinate to ^..
The Interior is correct.. It works the way you want it to, in my server.