OnVehicleStreamIn

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
OnVehicleStreamIn

Type: Event
Context: Server & Client
Introduced: v1.0

Description

Calls when a vehicle streams out of the streaming distance set in your server_config for a player.

Syntax

OnVehicleStreamIn(vehicle, player)
Client Syntax
OnVehicleStreamIn(vehicle)

Parameters

  • vehicle
    The vehicle for the other player is streamed in.
  • player
    The player that streams in for vehicle.

Example

AddEvent("OnVehicleStreamIn", function(vehicle)
	AddPlayerChat("Vehicle ID " .. vehicle .. " is now streamed for you! There are " .. #GetStreamedVehicles() .. " vehicles streamed for you!")
end)

See also