{"hash":"0x7C059C55AD940CB4","ns":"ATTRIBUTE","name":"GET_DEFAULT_MAX_ATTRIBUTE_RANK","slug":"GET_DEFAULT_MAX_ATTRIBUTE_RANK","official":true,"named":true,"luaName":"GetDefaultMaxAttributeRank","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"modelHash","type":"Hash"},{"name":"attributeIndex","type":"int"}],"summary":"","descriptions":[{"source":"alloc8or","format":"text","body":"attributeIndex: see SET_ATTRIBUTE_BASE_RANK"}],"examples":[],"aliases":[],"enums":["PedAttribute__AttributeType"],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/ATTRIBUTE/GET_DEFAULT_MAX_ATTRIBUTE_RANK","markdownUrl":"https://natives.borderlinerp.com/natives/ATTRIBUTE/GET_DEFAULT_MAX_ATTRIBUTE_RANK.md","snippets":{"lua":"local retval = GetDefaultMaxAttributeRank(modelHash, attributeIndex)","luaInvoke":"local retval = Citizen.InvokeNative(0x7C059C55AD940CB4, modelHash, attributeIndex, Citizen.ResultAsInteger())","js":"const retval = GetDefaultMaxAttributeRank(modelHash, attributeIndex);","jsInvoke":"const retval = Citizen.invokeNative('0x7C059C55AD940CB4', modelHash, attributeIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x7C059C55AD940CB4, modelHash, attributeIndex);","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"name\")` or a backtick literal like `` `name` ``."]}}