NetworkClient

setPlayerInvisibleLocally

SET_PLAYER_INVISIBLE_LOCALLY0x12B37D54667DB0B8

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

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

Usage

JavaScript
setPlayerInvisibleLocally(player, bIncludePlayersVehicle);
Lua
setPlayerInvisibleLocally(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_INVISIBLE_LOCALLY(Player player, BOOL bIncludePlayersVehicle)
Hash
0x12B37D54667DB0B8

Open in the interactive natives reference