{"hash":"0x5A695BD328586B44","ns":"WEAPON","name":"_GET_LONGARMS_INSTANTLY_STORE_ON_DISMOUNT","slug":"_GET_LONGARMS_INSTANTLY_STORE_ON_DISMOUNT","official":false,"named":true,"luaName":"GetLongarmsInstantlyStoreOnDismount","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"ped","type":"Ped"},{"name":"p1","type":"int"}],"summary":"Gets the ped setting that controls whether longarms are instantly stored on the mount when dismounting.","descriptions":[{"source":"alloc8or","format":"text","body":"Gets the ped setting that controls whether longarms are instantly stored on the mount when dismounting.\n\nNotes:\n- p1 selects one of two internal bits (WeaponComponent+0x1B5); scripts consistently pass 0.\n- SP scripts typically toggle this based on context (e.g., player on/near their saddle horse or horse has a holstered longarm, and the player is in a \"safe/town\" state and not under threat).\n- Reads the same setting toggled by WEAPON::_SET_INSTANTLY_STORE_LONGARMS_ON_DISMOUNT (0xB832F1A686B9B810)."},{"source":"vorp","format":"text","body":"Returns the current state of longarm storage on dismount for the specified ped."}],"examples":[],"aliases":["_GET_LONGARM_STORE_ON_DISMOUNT_STATE"],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/WEAPON/_GET_LONGARMS_INSTANTLY_STORE_ON_DISMOUNT","markdownUrl":"https://natives.borderlinerp.com/natives/WEAPON/_GET_LONGARMS_INSTANTLY_STORE_ON_DISMOUNT.md","snippets":{"lua":"local retval = GetLongarmsInstantlyStoreOnDismount(ped, p1)","luaInvoke":"local retval = Citizen.InvokeNative(0x5A695BD328586B44, ped, p1, Citizen.ReturnResultAnyway())","js":"const retval = GetLongarmsInstantlyStoreOnDismount(ped, p1);","jsInvoke":"const retval = Citizen.invokeNative('0x5A695BD328586B44', ped, p1, Citizen.returnResultAnyway());","csharp":"bool retval = Function.Call<bool>((Hash)0x5A695BD328586B44, ped, p1);","notes":["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."]}}