NetworkClient

setPlayerVisibleLocally

SET_PLAYER_VISIBLE_LOCALLY0xFAA10F1FAFB11AF2

The GTA V native SET_PLAYER_VISIBLE_LOCALLY of the NETWORK namespace, as LS:MP client scripts call it: the global function setPlayerVisibleLocally, in JavaScript and in Lua.

SignatureJavaScript
setPlayerVisibleLocally(player: Player, bIncludePlayersVehicle: boolean): void
SignatureLua
setPlayerVisibleLocally(player: Player, bIncludePlayersVehicle: boolean)

Usage

JavaScript
setPlayerVisibleLocally(player, bIncludePlayersVehicle);
Lua
setPlayerVisibleLocally(player, bIncludePlayersVehicle)

Parameters

ParameterTypeJavaScriptLua
playerPlayernumberinteger
bIncludePlayersVehicleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Network NETWORK
In the game
void SET_PLAYER_VISIBLE_LOCALLY(Player player, BOOL bIncludePlayersVehicle)
Hash
0xFAA10F1FAFB11AF2

Open in the interactive natives reference