Player::isStreamed

From RAGE Multiplayer Wiki

Shared
Function

 JavaScript


This function is used for check, player is located in stream distance for another player or not.


JavaScript Syntax

Syntax

player.isStreamed(Player player);

Parameters

  • player: Player

Return value

  • Boolean

Examples

Server-Side
let player = mp.players.at(1488);
mp.players.forEach((_player) => {
    if (player.isStreamed(_player)) {
        console.log(`Player by name ${_player.name} in stream distance!`);
    }
});


See Also