The Lab
ATTRIBUTE native

GET_MAX_ATTRIBUTE_POINTS

returns int2 paramsbuild 1207

Returns the maximum number of points the attribute selected by attributeIndex can hold for ped.

Signature

C
int GET_MAX_ATTRIBUTE_POINTS(Ped ped, int attributeIndex); // 0x223BF310F854871C b1207

Parameters

#NameType
1pedPed
2attributeIndexint

Facts

Facts about GET_MAX_ATTRIBUTE_POINTS
Name
GET_MAX_ATTRIBUTE_POINTS
Hash
0x223BF310F854871C
Namespace
Returns
int
Game build
1207

Examples

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

Lua
local result = Citizen.InvokeNative(0x223BF310F854871C, -- GET_MAX_ATTRIBUTE_POINTS
  PlayerPedId(), -- Ped ped
  0, -- int attributeIndex
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x223BF310F854871C", // GET_MAX_ATTRIBUTE_POINTS
  PlayerPedId(), // Ped ped
  0, // int attributeIndex
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x223BF310F854871C, // GET_MAX_ATTRIBUTE_POINTS
  API.PlayerPedId(), // Ped ped
  0 // int attributeIndex
);
All ATTRIBUTE natives

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