HUDClient3 outputs

getPmPlayerCrewColor

GET_PM_PLAYER_CREW_COLOR0xA238192F33110615

The GTA V native GET_PM_PLAYER_CREW_COLOR of the HUD namespace, as LS:MP client scripts call it: the global function getPmPlayerCrewColor, in JavaScript and in Lua.

SignatureJavaScript
getPmPlayerCrewColor(): [ok: boolean, r: number, g: number, b: number]
SignatureLua
getPmPlayerCrewColor(): boolean, integer, integer, integer

Usage

JavaScript
const [ok, r, g, b] = getPmPlayerCrewColor();
Lua
local ok, r, g, b = getPmPlayerCrewColor()

Parameters

None. The game writes the outputs: they are handed back, not passed in.

Returns

4 values, in this order: an array in JavaScript, multiple return values in Lua.

#ValueTypeJavaScriptLuaDescription
1okBOOLbooleanbooleanThe native’s own return value.
2rintnumberintegeroutput
3gintnumberintegeroutput
4bintnumberintegeroutput

Reference

Namespace
HUD HUD
In the game
BOOL GET_PM_PLAYER_CREW_COLOR(int* r, int* g, int* b)
Hash
0xA238192F33110615

Open in the interactive natives reference