getPmPlayerCrewColor
GET_PM_PLAYER_CREW_COLOR0xA238192F33110615The 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.
getPmPlayerCrewColor(): [ok: boolean, r: number, g: number, b: number]getPmPlayerCrewColor(): boolean, integer, integer, integerUsage
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.
| # | Value | Type | JavaScript | Lua | Description |
|---|---|---|---|---|---|
| 1 | ok | BOOL | boolean | boolean | The native’s own return value. |
| 2 | r | int | number | integer | output |
| 3 | g | int | number | integer | output |
| 4 | b | int | number | integer | output |
Reference
- Namespace
- HUD HUD
- In the game
BOOL GET_PM_PLAYER_CREW_COLOR(int* r, int* g, int* b)- Hash
0xA238192F33110615