The Lab
ATTRIBUTE native

GET_DEFAULT_MAX_ATTRIBUTE_RANK

returns int2 paramsbuild 1207

Returns the default maximum rank an attribute can reach for peds of model modelHash.

Signature

C
int GET_DEFAULT_MAX_ATTRIBUTE_RANK(Hash modelHash, int attributeIndex); // 0x7C059C55AD940CB4 b1207

Parameters

#NameType
1modelHashHash
2attributeIndexint

Facts

Facts about GET_DEFAULT_MAX_ATTRIBUTE_RANK
Name
GET_DEFAULT_MAX_ATTRIBUTE_RANK
Hash
0x7C059C55AD940CB4
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(0x7C059C55AD940CB4, -- GET_DEFAULT_MAX_ATTRIBUTE_RANK
  GetHashKey("a_c_horse_arabian_white"), -- Hash modelHash
  0, -- int attributeIndex
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x7C059C55AD940CB4", // GET_DEFAULT_MAX_ATTRIBUTE_RANK
  GetHashKey("a_c_horse_arabian_white"), // Hash modelHash
  0, // int attributeIndex
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x7C059C55AD940CB4, // GET_DEFAULT_MAX_ATTRIBUTE_RANK
  (uint)API.GetHashKey("a_c_horse_arabian_white"), // Hash modelHash
  0 // int attributeIndex
);
All ATTRIBUTE natives

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