{"hash":"0x94A7F191DB49A44D","ns":"ATTRIBUTE","name":"GET_DEFAULT_ATTRIBUTE_POINTS_NEEDED_FOR_RANK","slug":"GET_DEFAULT_ATTRIBUTE_POINTS_NEEDED_FOR_RANK","official":true,"named":true,"luaName":"GetDefaultAttributePointsNeededForRank","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"modelHash","type":"Hash"},{"name":"attributeIndex","type":"int"},{"name":"rank","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_ATTRIBUTE_POINTS_NEEDED_FOR_RANK","markdownUrl":"https://natives.borderlinerp.com/natives/ATTRIBUTE/GET_DEFAULT_ATTRIBUTE_POINTS_NEEDED_FOR_RANK.md","snippets":{"lua":"local retval = GetDefaultAttributePointsNeededForRank(modelHash, attributeIndex, rank)","luaInvoke":"local retval = Citizen.InvokeNative(0x94A7F191DB49A44D, modelHash, attributeIndex, rank, Citizen.ResultAsInteger())","js":"const retval = GetDefaultAttributePointsNeededForRank(modelHash, attributeIndex, rank);","jsInvoke":"const retval = Citizen.invokeNative('0x94A7F191DB49A44D', modelHash, attributeIndex, rank, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x94A7F191DB49A44D, modelHash, attributeIndex, rank);","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` ``."]}}