{"hash":"0xE704838F36F93B7B","ns":"MISC","name":"_COUNT_BIT_FLAGS","slug":"_COUNT_BIT_FLAGS","official":false,"named":true,"luaName":"CountBitFlags","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"bitFlags","type":"Any*"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1355","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/MISC/_COUNT_BIT_FLAGS","markdownUrl":"https://natives.borderlinerp.com/natives/MISC/_COUNT_BIT_FLAGS.md","snippets":{"lua":"local retval, bitFlags = CountBitFlags(bitFlags)","luaInvoke":"local retval, bitFlags = Citizen.InvokeNative(0xE704838F36F93B7B, Citizen.PointerValueIntInitialized(bitFlags), Citizen.ResultAsInteger())","js":"const [retval, bitFlags] = CountBitFlags(bitFlags);","jsInvoke":"const [retval, bitFlags] = Citizen.invokeNative('0xE704838F36F93B7B', Citizen.pointerValueIntInitialized(bitFlags), Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"var bitFlags = new OutputArgument();\nint retval = Function.Call<int>((Hash)0xE704838F36F93B7B, bitFlags);\n// bitFlags.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.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}