networkSetAntagonisticToPlayer
NETWORK_SET_ANTAGONISTIC_TO_PLAYER0x5C707A667DF8B9FAThe 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.
networkSetAntagonisticToPlayer(toggle: boolean, player: Player): voidnetworkSetAntagonisticToPlayer(toggle: boolean, player: Player)Usage
JavaScript
networkSetAntagonisticToPlayer(toggle, player);Lua
networkSetAntagonisticToPlayer(toggle, player)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
toggle | BOOL | boolean | boolean |
player | Player | number | integer |
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