RedM Natives

GET_PLAYER_MAX_ARMOUR

Hash0x2A50657
Runtime nameGetPlayerMaxArmour
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

int GET_PLAYER_MAX_ARMOUR(char* playerSrc);

Parameters

NameTypeDescription
playerSrcchar*

The player handle

Returns int

Usage

Lua
local retval = GetPlayerMaxArmour(playerSrc)

-- always works, by hash
local retval = Citizen.InvokeNative(0x2a50657, playerSrc, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetPlayerMaxArmour(playerSrc);

// by hash
const retval = Citizen.invokeNative('0x2a50657', playerSrc, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x2a50657, playerSrc);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.