NetworkClient

networkGetPositionHashOfThisScript

NETWORK_GET_POSITION_HASH_OF_THIS_SCRIPT0x257ED0FADF750BCF

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

SignatureJavaScript
networkGetPositionHashOfThisScript(): Hash
SignatureLua
networkGetPositionHashOfThisScript(): Hash

Usage

JavaScript
const hash = networkGetPositionHashOfThisScript();
Lua
local hash = networkGetPositionHashOfThisScript()

Parameters

None.

Returns

Hash JavaScript number, Lua integer

A game hash. Natives return it unsigned (0 to 4294967295), the value lsmp.hash gives. As an argument, the signed and unsigned forms of a hash are the same value.

Reference

Namespace
Network NETWORK
In the game
Hash NETWORK_GET_POSITION_HASH_OF_THIS_SCRIPT()
Hash
0x257ED0FADF750BCF
Introduced
Game build 2372 legacy numbering
Formerly
_NETWORK_GET_POSITION_HASH_OF_THIS_SCRIPT

Open in the interactive natives reference