SA-MP Forums Archive
Invisible car - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Invisible car (/showthread.php?tid=201551)



Invisible car - vlastikczech - 21.12.2010

Alright, I wanted to add some News van at the news hq, but 4 news van turned out to be invisible.

AddStaticVehicle(582,763.2947,-1335.6726,13.5736,148.1665,2,1); // news 1
AddStaticVehicle(582,756.7409,-1334.7643,13.5957,180.1345,2,1); // news 2
AddStaticVehicle(582,750.7573,-1334.9136,13.6046,180.5620,2,1); // news 3
AddStaticVehicle(582,738.4964,-1334.1765,13.6226,82.3503,2,1); // news 4


Re: Invisible car - akis_tze - 21.12.2010

Maybe you set your cars in an interior


Re: Invisible car - vlastikczech - 21.12.2010

I don't think I did. I went to mta and added these cars and then converted them to samp.


Re: Invisible car - akis_tze - 21.12.2010

Try add your cars with the normal way
In game /save


Re: Invisible car - vlastikczech - 21.12.2010

I already tried that way it still shows a invisible car


Re: Invisible car - [JnA]DukeNukem - 21.12.2010

Then you should be happy, you are the boss, you have a invisible car :P


Re: Invisible car - DJDhan - 21.12.2010

Check the code under OnGameModeInit(). What do you mean by invisible?
1)You can ride the car but others can't see you?
Possible Cause: You are using LinkVehicleToInterior() to link the vehicle to an interior under OnGameModeInit().

2)Or they don't appear?
Possible Causes: You have a custom map and you are creating the vehicles at the wrong co-ordinates (mostly lower z value).


Re: Invisible car - vlastikczech - 21.12.2010

thanks, the LinkVehicleToInterior() was the problem