NetworkClient

networkHashFromPlayerHandle

NETWORK_HASH_FROM_PLAYER_HANDLE0xBC1D768F2F5D6C05

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

SignatureJavaScript
networkHashFromPlayerHandle(player: Player): Hash
SignatureLua
networkHashFromPlayerHandle(player: Player): Hash

Usage

JavaScript
const hash = networkHashFromPlayerHandle(player);
Lua
local hash = networkHashFromPlayerHandle(player)

Parameters

ParameterTypeJavaScriptLua
playerPlayernumberinteger

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_HASH_FROM_PLAYER_HANDLE(Player player)
Hash
0xBC1D768F2F5D6C05
Formerly
_NETWORK_HASH_FROM_PLAYER_HANDLE

Open in the interactive natives reference