{"hash":"0x462C687BEA254BD9","ns":"SCRIPT","name":"COUNT_PLAYER_BITS","slug":"COUNT_PLAYER_BITS","official":true,"named":true,"luaName":"CountPlayerBits","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"value","type":"Any*"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/SCRIPT/COUNT_PLAYER_BITS","markdownUrl":"https://natives.borderlinerp.com/natives/SCRIPT/COUNT_PLAYER_BITS.md","snippets":{"lua":"local retval, value = CountPlayerBits(value)","luaInvoke":"local retval, value = Citizen.InvokeNative(0x462C687BEA254BD9, Citizen.PointerValueIntInitialized(value), Citizen.ResultAsInteger())","js":"const [retval, value] = CountPlayerBits(value);","jsInvoke":"const [retval, value] = Citizen.invokeNative('0x462C687BEA254BD9', Citizen.pointerValueIntInitialized(value), Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"var value = new OutputArgument();\nint retval = Function.Call<int>((Hash)0x462C687BEA254BD9, value);\n// value.GetResult<int>()","notes":["The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.","`Any*` arguments are often structs. Build them with a DataView buffer and pass it with `:Buffer()` — see the examples and notes below."]}}