getNumberOfPlayersInTeam
GET_NUMBER_OF_PLAYERS_IN_TEAM0x1FC200409F10E6F1The GTA V native GET_NUMBER_OF_PLAYERS_IN_TEAM of the PLAYER namespace, as LS:MP client scripts call it: the global function getNumberOfPlayersInTeam, in JavaScript and in Lua.
getNumberOfPlayersInTeam(team: number): numbergetNumberOfPlayersInTeam(team: integer): integerUsage
JavaScript
const result = getNumberOfPlayersInTeam(team);Lua
local result = getNumberOfPlayersInTeam(team)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
team | int | number | integer |
Returns
int JavaScript number, Lua integerReference
- Namespace
- Player PLAYER
- In the game
int GET_NUMBER_OF_PLAYERS_IN_TEAM(int team)- Hash
0x1FC200409F10E6F1- Introduced
- Game build 1180 legacy numbering
- Formerly
_GET_NUMBER_OF_PLAYERS_IN_TEAM