OnVehicleStreamIn

warning

This callback was added in SA-MP 0.3a and will not work in earlier versions!

Description

Called when a vehicle is streamed to a player's client.

NameDescription
vehicleidThe ID of the vehicle that streamed in for the player.
forplayeridThe ID of the player who the vehicle streamed in for.

Returns

It is always called first in filterscripts.

Examples

public OnVehicleStreamIn(vehicleid, forplayerid)
{
new string[32];
format(string, sizeof(string), "You can now see vehicle %d.", vehicleid);
SendClientMessage(forplayerid, 0xFFFFFFFF, string);
return 1;
}

Notes

tip

This callback can also be called by NPC.

Related Functions