OnVehicleStreamIn

From SA-MP Wiki

Jump to: navigation, search

OnVehicleStreamIn


Warning: This callback was added in SA-MP version 0.3. It is not available in previous versions.


This callback is called when a vehicle is streamed in some player's client.


Parameters:
(vehicleid, forplayerid)
vehicleidThe ID of the vehicle that streamed in for the player.
forplayeridThe ID of the player who the vehicle streamed in for.


This callback does not handle returns.


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

Related Callbacks

The following callbacks might be useful as well, as they're related to this callback in one way or another.

Personal tools