PDA

View Full Version : Simple question


Rokzlive
22/12/2011, 05:03 AM
How do i check if a car is spawned?

I looked for a function and well... couldnt find it.

Definition
22/12/2011, 05:06 AM
I dunno but what is IsVehicleStreamedIn ?

Rokzlive
22/12/2011, 05:07 AM
That involves playerid and some crap, so its not what i need.

Steven82
22/12/2011, 05:28 AM
Read THIS (http://forum.sa-mp.com/showthread.php?p=1581651#post1581651) topic. No it's not a search link or anything in that nature. It is an actual topic. I don't know if this is what your looking for, but i needed something similar to this today and remembered a topic from yesterday that i was having a little discussion on. Check it out. Hope it helps.

- Steven

FarSe.
22/12/2011, 06:15 AM
if(GetVehicleModel(vehid) > 0) //vehicle isn't spawned
or
new Float:Pos;GetVehiclePos(vehid,Pos,Pos,Pos);
if(Pos == 0.00) //vehicle isn't spawned

Tee
22/12/2011, 06:20 AM
stock IsVehicleConnected(vehicleid)
{
new Float:x, Float:y, Float:z;
GetVehiclePos(vehicleid, x, y, z);
if(x == 0.0 && y == 0.0 && z == 0.0)return 0;
return 1;
}