_GET_ATTRIBUTE_CORE_VALUE
Gets the ped's core value on a scale of 0 to 100.
Hash
0x36731AC041289BB1Runtime name
GetAttributeCoreValueNamespaceATTRIBUTE
SideClient
NameCommunity guess
Docs
Since build1207
Signature
int _GET_ATTRIBUTE_CORE_VALUE(Ped ped, int coreIndex);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
coreIndex | int | — |
Returns int
Description
Gets the ped's core value on a scale of 0 to 100.
coreIndex: see _SET_ATTRIBUTE_CORE_VALUE
Usage
local retval = GetAttributeCoreValue(ped, coreIndex)
-- always works, by hash
local retval = Citizen.InvokeNative(0x36731AC041289BB1, ped, coreIndex, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetAttributeCoreValue(ped, coreIndex);
// by hash
const retval = Citizen.invokeNative('0x36731AC041289BB1', ped, coreIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x36731AC041289BB1, ped, coreIndex);- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
See also
_SET_ATTRIBUTE_CORE_VALUEATTRIBUTE_CORE_HEALTH, ATTRIBUTE_CORE_STAMINA, ATTRIBUTE_CORE_DEADEYE
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.