{"hash":"0xF2DD2298B3AF23E2","ns":"MISC","name":"STRING_TO_INT","slug":"STRING_TO_INT","official":true,"named":true,"luaName":"StringToInt","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"string","type":"const char*"},{"name":"outInteger","type":"int*"}],"summary":"Returns false if it's a null or empty string or if the string is too long.","descriptions":[{"source":"alloc8or","format":"text","body":"Returns false if it's a null or empty string or if the string is too long. outInteger will be set to -999 in that case."}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0x5A5F40FE637EB584","gtaJhash":"0x590A8160","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/MISC/STRING_TO_INT","markdownUrl":"https://natives.borderlinerp.com/natives/MISC/STRING_TO_INT.md","snippets":{"lua":"local retval, outInteger = StringToInt(string, outInteger)","luaInvoke":"local retval, outInteger = Citizen.InvokeNative(0xF2DD2298B3AF23E2, string, Citizen.PointerValueIntInitialized(outInteger), Citizen.ReturnResultAnyway())","js":"const [retval, outInteger] = StringToInt(string, outInteger);","jsInvoke":"const [retval, outInteger] = Citizen.invokeNative('0xF2DD2298B3AF23E2', string, Citizen.pointerValueIntInitialized(outInteger), Citizen.returnResultAnyway());","csharp":"var outInteger = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0xF2DD2298B3AF23E2, string, outInteger);\n// outInteger.GetResult<int>()","notes":["The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result."]}}