The Lab
ATTRIBUTE native

_SET_ATTRIBUTE_CORE_VALUE

returns void3 paramsbuild 1207

Sets the fill level of one of the ped's attribute cores, selected by coreIndex, to value.

Commonly used by survival or needs scripts to refill or drain the health and stamina cores.

Signature

C
void _SET_ATTRIBUTE_CORE_VALUE(Ped ped, int coreIndex, int value); // 0xC6258F41D86676E0 b1207

Parameters

#NameType
1pedPed
2coreIndexint
3valueint

Facts

Facts about _SET_ATTRIBUTE_CORE_VALUE
Name
_SET_ATTRIBUTE_CORE_VALUE
Hash
0xC6258F41D86676E0
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0xC6258F41D86676E0, -- _SET_ATTRIBUTE_CORE_VALUE
  PlayerPedId(), -- Ped ped
  0, -- int coreIndex
  0 -- int value
)
JavaScript
Citizen.invokeNative("0xC6258F41D86676E0", // _SET_ATTRIBUTE_CORE_VALUE
  PlayerPedId(), // Ped ped
  0, // int coreIndex
  0 // int value
);
C#
Function.Call((Hash)0xC6258F41D86676E0, // _SET_ATTRIBUTE_CORE_VALUE
  API.PlayerPedId(), // Ped ped
  0, // int coreIndex
  0 // int value
);
All ATTRIBUTE natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.