NetworkClient

networkFindMatchedGamers

NETWORK_FIND_MATCHED_GAMERS0xF7B2CFDE5C9F700D

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

SignatureJavaScript
networkFindMatchedGamers(
  attribute: number,
  fallbackLimit: number,
  lowerLimit: number,
  upperLimit: number
): boolean
SignatureLua
networkFindMatchedGamers(
  attribute: integer,
  fallbackLimit: number,
  lowerLimit: number,
  upperLimit: number
): boolean

Usage

JavaScript
const result = networkFindMatchedGamers(attribute, fallbackLimit, lowerLimit, upperLimit);
Lua
local result = networkFindMatchedGamers(attribute, fallbackLimit, lowerLimit, upperLimit)

Parameters

ParameterTypeJavaScriptLua
attributeintnumberinteger
fallbackLimitfloatnumbernumber
lowerLimitfloatnumbernumber
upperLimitfloatnumbernumber

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Uses attributes to find players with similar stats. Upper/Lower limit must be above zero or the fallback limit +/-0.1 is used.
There can be up to 15 attributes, they are as follows:

0 = Races
1 = Parachuting
2 = Horde
3 = Darts
4 = Arm Wrestling
5 = Tennis
6 = Golf
7 = Shooting Range
8 = Deathmatch
9 = MPPLY_MCMWIN/MPPLY_CRMISSION

Reference

Namespace
Network NETWORK
In the game
BOOL NETWORK_FIND_MATCHED_GAMERS(int attribute, float fallbackLimit, float lowerLimit, float upperLimit)
Hash
0xF7B2CFDE5C9F700D

Open in the interactive natives reference