Vehicle::streamedPlayers: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

29 May 2024

  • curprev 08:3508:35, 29 May 2024Shr0x talk contribs 617 bytes +617 Created page with "{{ServersideJsFunction}} {{JSContainer| Returns an array of players that are streamed in for the vehicle. ===Return value=== *''' {{RageType|Player[]}} ''' ==Syntax== <syntaxhighlight lang="javascript"> vehicle.streamedPlayers </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const vehicle = mp.vehicles.at(0);// find vehicle id 0 if (!vehicle || !mp.vehicles.exists(vehicle)) return; vehicle.streamedPlayers.forEach((player) => { player.outputChatBo..."