NetworkClient

networkSetAntagonisticToPlayer

NETWORK_SET_ANTAGONISTIC_TO_PLAYER0x5C707A667DF8B9FA

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

SignatureJavaScript
networkSetAntagonisticToPlayer(toggle: boolean, player: Player): void
SignatureLua
networkSetAntagonisticToPlayer(toggle: boolean, player: Player)

Usage

JavaScript
networkSetAntagonisticToPlayer(toggle, player);
Lua
networkSetAntagonisticToPlayer(toggle, player)

Parameters

ParameterTypeJavaScriptLua
toggleBOOLbooleanboolean
playerPlayernumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Network NETWORK
In the game
void NETWORK_SET_ANTAGONISTIC_TO_PLAYER(BOOL toggle, Player player)
Hash
0x5C707A667DF8B9FA
Formerly
NETWORK_SET_CHOICE_MIGRATE_OPTIONS

Open in the interactive natives reference