NetworkClient

networkSetFriendlyFireOption

NETWORK_SET_FRIENDLY_FIRE_OPTION0xF808475FA571D823

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

SignatureJavaScript
networkSetFriendlyFireOption(toggle: boolean): void
SignatureLua
networkSetFriendlyFireOption(toggle: boolean)

Usage

JavaScript
networkSetFriendlyFireOption(toggle);
Lua
networkSetFriendlyFireOption(toggle)

Parameters

ParameterTypeJavaScriptLua
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Network NETWORK
In the game
void NETWORK_SET_FRIENDLY_FIRE_OPTION(BOOL toggle)
Hash
0xF808475FA571D823

Open in the interactive natives reference