NetworkClient

networkSetLocalPlayerInvincibleTime

NETWORK_SET_LOCAL_PLAYER_INVINCIBLE_TIME0x2D95C7E2D7E07307

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

SignatureJavaScript
networkSetLocalPlayerInvincibleTime(time: number): void
SignatureLua
networkSetLocalPlayerInvincibleTime(time: integer)

Usage

JavaScript
networkSetLocalPlayerInvincibleTime(time);
Lua
networkSetLocalPlayerInvincibleTime(time)

Parameters

ParameterTypeJavaScriptLua
timeintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Network NETWORK
In the game
void NETWORK_SET_LOCAL_PLAYER_INVINCIBLE_TIME(int time)
Hash
0x2D95C7E2D7E07307

Open in the interactive natives reference