setRemotePlayerAsGhost
SET_REMOTE_PLAYER_AS_GHOST0xA7C511FA1C5BDA38The 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.
setRemotePlayerAsGhost(player: Player, p1: boolean): voidsetRemotePlayerAsGhost(player: Player, p1: boolean)Usage
JavaScript
setRemotePlayerAsGhost(player, p1);Lua
setRemotePlayerAsGhost(player, p1)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
player | Player | number | integer |
p1 | BOOL | boolean | boolean |
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