networkFindMatchedGamers
NETWORK_FIND_MATCHED_GAMERS0xF7B2CFDE5C9F700DThe 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.
networkFindMatchedGamers(
attribute: number,
fallbackLimit: number,
lowerLimit: number,
upperLimit: number
): booleannetworkFindMatchedGamers(
attribute: integer,
fallbackLimit: number,
lowerLimit: number,
upperLimit: number
): booleanUsage
JavaScript
const result = networkFindMatchedGamers(attribute, fallbackLimit, lowerLimit, upperLimit);Lua
local result = networkFindMatchedGamers(attribute, fallbackLimit, lowerLimit, upperLimit)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
attribute | int | number | integer |
fallbackLimit | float | number | number |
lowerLimit | float | number | number |
upperLimit | float | number | number |
Returns
BOOL JavaScript boolean, Lua booleanNotes
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