NetworkClient

setRemotePlayerAsGhost

SET_REMOTE_PLAYER_AS_GHOST0xA7C511FA1C5BDA38

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

SignatureJavaScript
setRemotePlayerAsGhost(player: Player, p1: boolean): void
SignatureLua
setRemotePlayerAsGhost(player: Player, p1: boolean)

Usage

JavaScript
setRemotePlayerAsGhost(player, p1);
Lua
setRemotePlayerAsGhost(player, p1)

Parameters

ParameterTypeJavaScriptLua
playerPlayernumberinteger
p1BOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Enables ghosting between specific players

Reference

Namespace
Network NETWORK
In the game
void SET_REMOTE_PLAYER_AS_GHOST(Player player, BOOL p1)
Hash
0xA7C511FA1C5BDA38
Introduced
Game build 463 legacy numbering
Formerly
_SET_RELATIONSHIP_TO_PLAYER

Open in the interactive natives reference