LinkVehicleToInterior
#1

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
Reply
#2

up please
Reply
#3

up plz
Reply
#4

try with createvehicle
Reply
#5

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

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

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
Reply
#8

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)