{"slug":"AI/CPED_RESET_FLAGS","category":"AI","title":"CPED RESET FLAGS","kind":"markdown","intro":"","body":"## Some CPED Reset Flags\n\nTo set Reset Ped Flags call it every frame.\n\n## Example\n\n```lua\nCitizen.CreateThread(function()\n  while true do\n    Citizen.Wait(0)\n    Citizen.InvokeNative(0xC1E8A365BF3B29F2,PlayerPedId(),2,true)   -- SetPedResetFlag, flag 2 is preventing ped to jump\n  end\nend)\n\nCitizen.CreateThread(function()\n  while true do\n    Citizen.Wait(0)\n    print(\"is ped switching weapons: \" ..tostring(Citizen.InvokeNative(0xAF9E59B1B1FBF2A0,PlayerPedId(),332)))   -- GetPedResetFlag, flag 332 - check is ped switching weapons\n  end\nend)\n```\n\n<h2>Some known reset ped flags.</h2>\n\n## Some CPED Reset Flags\n\nTo set Reset Ped Flags call it every frame.\n\n## Example\n\n```lua\nCitizen.CreateThread(function()\n  while true do\n    Citizen.Wait(0)\n    Citizen.InvokeNative(0xC1E8A365BF3B29F2,PlayerPedId(),2,true)   -- SetPedResetFlag, flag 2 is preventing ped to jump\n  end\nend)\n\nCitizen.CreateThread(function()\n  while true do\n    Citizen.Wait(0)\n    print(\"is ped switching weapons: \" ..tostring(Citizen.InvokeNative(0xAF9E59B1B1FBF2A0,PlayerPedId(),332)))   -- GetPedResetFlag, flag 332 - check is ped switching weapons\n  end\nend)\n```\n\n<h2>Some known reset ped flags.</h2>","tables":[{"id":9,"name":"Some known reset ped flags.","columns":["flag_id","flag_name","flag_description"],"rows":372}],"sourceUrl":"https://github.com/femga/rdr3_discoveries/tree/477aaaccadb7f0c042286611d9939009636cff12/AI/CPED_RESET_FLAGS","rows":[{"row":0,"cells":{"flag_id":"0","flag_name":"PRF_IsAiming"},"note":null},{"row":1,"cells":{"flag_id":"1","flag_name":"PRF_DisablePlayerLockon"},"note":null},{"row":2,"cells":{"flag_id":"2","flag_name":"PRF_DisablePlayerJumping"},"note":null},{"row":3,"cells":{"flag_id":"3","flag_name":"PRF_AllowUpdateIfNoCollisionLoaded"},"note":null},{"row":4,"cells":{"flag_id":"4","flag_name":"PRF_DisableSecondaryAnimationTasks"},"note":null},{"row":5,"cells":{"flag_id":"5","flag_name":"PRF_SuppressGunfireEvents"},"note":null},{"row":6,"cells":{"flag_id":"6","flag_name":"PRF_InfiniteStamina"},"note":null},{"row":7,"cells":{"flag_id":"7","flag_name":"PRF_BlockWeaponReactionsUnlessDead"},"note":null},{"row":8,"cells":{"flag_id":"8","flag_name":"PRF_ForcePlayerFiring"},"note":null},{"row":9,"cells":{"flag_id":"9","flag_name":"PRF_ForcePeekFromCover"},"note":null},{"row":10,"cells":{"flag_id":"10","flag_name":"PRF_ForcePedToStrafe"},"note":null},{"row":11,"cells":{"flag_id":"11","flag_name":"PRF_ForceMeleeStrafingAnims"},"note":null},{"row":12,"cells":{"flag_id":"12","flag_name":"PRF_UseKinematicPhysics","flag_description":"ped pushes any physical objects out of its way when it moves into them"},"note":null},{"row":13,"cells":{"flag_id":"13","flag_name":"PRF_ClearLockonTarget"},"note":null},{"row":14,"cells":{"flag_id":"14","flag_name":"PRF_ForcePedToUseScripCamHeading"},"note":null},{"row":15,"cells":{"flag_id":"15","flag_name":"PRF_IgnoreTargetsCoverForLOS"},"note":null},{"row":16,"cells":{"flag_id":"16","flag_name":"PRF_DisableCrouchWhileInCover"},"note":null},{"row":17,"cells":{"flag_id":"17","flag_name":"PRF_ForceRunningSpeedForFragSmashing","flag_description":"peds will smash through frag objects when playing custom anims"},"note":null},{"row":18,"cells":{"flag_id":"18","flag_name":"PRF_ExtraLongWeaponRange"},"note":null},{"row":19,"cells":{"flag_id":"19","flag_name":"PRF_ForcePlayerToEnterVehicleThroughDirectDoorOnly"},"note":null},{"row":20,"cells":{"flag_id":"20","flag_name":"PRF_TaskCullExtraFarAway"},"note":null},{"row":21,"cells":{"flag_id":"21","flag_name":"PRF_DisableAutoVaulting"},"note":null},{"row":22,"cells":{"flag_id":"22","flag_name":"PRF_UseBulletPenetration"},"note":null},{"row":23,"cells":{"flag_id":"23","flag_name":"PRF_ForceAimAtHead"},"note":null},{"row":24,"cells":{"flag_id":"24","flag_name":"PRF_DisableSeeThroughChecksWhenTargeting","flag_description":"Line of Sight checks will fail if any materials with 'see through' materials found"},"note":null},{"row":25,"cells":{"flag_id":"25","flag_name":"PRF_CannotBeTargetedByAI"},"note":null},{"row":26,"cells":{"flag_id":"26","flag_name":"PRF_ForceInjuryAfterStunned"},"note":null},{"row":27,"cells":{"flag_id":"27","flag_name":"PRF_BlockWeaponFire"},"note":null},{"row":28,"cells":{"flag_id":"28","flag_name":"PRF_ExpandPedCapsuleFromSkeleton"},"note":null},{"row":29,"cells":{"flag_id":"29","flag_name":"PRF_SuppressInAirEvent"},"note":null},{"row":30,"cells":{"flag_id":"30","flag_name":"PRF_AllowTasksIncompatibleWithMotion"},"note":null},{"row":31,"cells":{"flag_id":"31","flag_name":"PRF_SuppressLethalMeleeActions"},"note":null},{"row":32,"cells":{"flag_id":"32","flag_name":"PRF_MakeHeadInvisble"},"note":null},{"row":33,"cells":{"flag_id":"33","flag_name":"PRF_NoAutoRunWhenFiring"},"note":null},{"row":34,"cells":{"flag_id":"34","flag_name":"PRF_DisableTakeOffParachutePack"},"note":null},{"row":35,"cells":{"flag_id":"35","flag_name":"PRF_IgnoreCombatTaunts"},"note":null},{"row":36,"cells":{"flag_id":"36","flag_name":"PRF_PreventAllMeleeTakedowns"},"note":null},{"row":37,"cells":{"flag_id":"37","flag_name":"PRF_PreventFailedMeleeTakedowns"},"note":null},{"row":38,"cells":{"flag_id":"38","flag_name":"PRF_UseTighterAvoidanceSettings"},"note":null},{"row":39,"cells":{"flag_id":"39","flag_name":"PRF_DisableDropDowns"},"note":null},{"row":40,"cells":{"flag_id":"40","flag_name":"PRF_DisableTakeOffScubaGear"},"note":null},{"row":41,"cells":{"flag_id":"41","flag_name":"PRF_DisableActionMode"},"note":null},{"row":42,"cells":{"flag_id":"42","flag_name":"PRF_UseHeadOrientationForPerception"},"note":null},{"row":43,"cells":{"flag_id":"43","flag_name":"PRF_DisableJumpRagdollOnCollision"},"note":null},{"row":44,"cells":{"flag_id":"44","flag_name":"PRF_DisableParachuting"},"note":null},{"row":45,"cells":{"flag_id":"45","flag_name":"PRF_KeepParachutePackOnAfterTeleport"},"note":null},{"row":46,"cells":{"flag_id":"46","flag_name":"PRF_DontRaiseFistsWhenLockedOn"},"note":null},{"row":47,"cells":{"flag_id":"47","flag_name":"PRF_PreferMeleeBodyIkHitReaction"},"note":null},{"row":48,"cells":{"flag_id":"48","flag_name":"PRF_DisableFriendlyGunReactAudio"},"note":null},{"row":49,"cells":{"flag_id":"49","flag_name":"PRF_DisableAgitationTriggers"},"note":null},{"row":50,"cells":{"flag_id":"50","flag_name":"PRF_DisableNMForRiverRapids"},"note":null},{"row":51,"cells":{"flag_id":"51","flag_name":"PRF_PreventGoingIntoStillInVehicleState"},"note":null},{"row":52,"cells":{"flag_id":"52","flag_name":"PRF_UseFastEnterExitVehicleRates"},"note":null},{"row":53,"cells":{"flag_id":"53","flag_name":"PRF_DisableAgitation"},"note":null},{"row":54,"cells":{"flag_id":"54","flag_name":"PRF_DisableTalk"},"note":null},{"row":55,"cells":{"flag_id":"55","flag_name":"PRF_UseProbeSlopeStairsDetection"},"note":null},{"row":56,"cells":{"flag_id":"56","flag_name":"PRF_DisableVehicleDamageReactions"},"note":null},{"row":57,"cells":{"flag_id":"57","flag_name":"PRF_DisablePotentialBlastReactions"},"note":null},{"row":58,"cells":{"flag_id":"58","flag_name":"PRF_OnlyAllowLeftArmDoorIk"},"note":null},{"row":59,"cells":{"flag_id":"59","flag_name":"PRF_OnlyAllowRightArmDoorIk"},"note":null},{"row":60,"cells":{"flag_id":"60","flag_name":"PRF_DisableFlashLight"},"note":null},{"row":61,"cells":{"flag_id":"61","flag_name":"PRF_ForceEnableFlashLightForAI"},"note":null},{"row":62,"cells":{"flag_id":"62","flag_name":"PRF_DisableCombatAudio"},"note":null},{"row":63,"cells":{"flag_id":"63","flag_name":"PRF_DisableCoverAudio"},"note":null},{"row":64,"cells":{"flag_id":"64"},"note":null},{"row":65,"cells":{"flag_id":"65","flag_name":"PRF_EnablePressAndReleaseDives"},"note":null},{"row":66,"cells":{"flag_id":"66","flag_name":"PRF_OnlyExitVehicleOnButtonRelease"},"note":null},{"row":67,"cells":{"flag_id":"67","flag_name":"PRF_ConsiderAsPlayerCoverThreatWithoutLOS"},"note":null},{"row":68,"cells":{"flag_id":"68","flag_name":"PRF_IgnoreVehicleEntryCollisionTests"},"note":null},{"row":69,"cells":{"flag_id":"69","flag_name":"PRF_PreventGoingIntoShuntInVehicleState"},"note":null},{"row":70,"cells":{"flag_id":"70","flag_name":"PRF_EnableVoiceDrivenMouthMovement"},"note":null},{"row":71,"cells":{"flag_id":"71","flag_name":"PRF_UseTighterEnterVehicleSettings"},"note":null},{"row":72,"cells":{"flag_id":"72","flag_name":"PRF_InRaceMode"},"note":null},{"row":73,"cells":{"flag_id":"73","flag_name":"PRF_DisableAmbientMeleeMoves"},"note":null},{"row":74,"cells":{"flag_id":"74","flag_name":"PRF_AllowSpecialAbilityInVehicle"},"note":null},{"row":75,"cells":{"flag_id":"75","flag_name":"PRF_DisableInVehicleActions"},"note":null},{"row":76,"cells":{"flag_id":"76","flag_name":"PRF_ForceInstantSteeringWheelIkBlendIn"},"note":null},{"row":77,"cells":{"flag_id":"77","flag_name":"PRF_IgnoreThreatEngagePlayerCoverBonus"},"note":null},{"row":78,"cells":{"flag_id":"78","flag_name":"PRF_DontCloseVehicleDoor"},"note":null},{"row":79,"cells":{"flag_id":"79","flag_name":"PRF_SkipExplosionOcclusion"},"note":null},{"row":80,"cells":{"flag_id":"80","flag_name":"PRF_MeleeStrikeAgainstNonPed"},"note":null},{"row":81,"cells":{"flag_id":"81","flag_name":"PRF_IgnoreNavigationForDoorArmIK"},"note":null},{"row":82,"cells":{"flag_id":"82","flag_name":"PRF_DisableAimingWhileParachuting"},"note":null},{"row":83,"cells":{"flag_id":"83","flag_name":"PRF_DisablePedCollisionWithPedEvent"},"note":null},{"row":84,"cells":{"flag_id":"84","flag_name":"PRF_IgnoreVelocityWhenClosingVehicleDoor"},"note":null},{"row":85,"cells":{"flag_id":"85","flag_name":"PRF_DontWalkRoundObjects"},"note":null},{"row":86,"cells":{"flag_id":"86","flag_name":"PRF_DisablePedEnteredMyVehicleEvents"},"note":null},{"row":87,"cells":{"flag_id":"87","flag_name":"PRF_DisableInVehiclePedVariationBlocking"},"note":null},{"row":88,"cells":{"flag_id":"88","flag_description":"NPC grabbed player ped ??"},"note":null},{"row":89,"cells":{"flag_id":"89","flag_name":"PRF_DisableAutoForceOutWhenBlowingUpCar"},"note":null},{"row":90,"cells":{"flag_id":"90","flag_name":"PRF_DisableDustOffAnims"},"note":null},{"row":91,"cells":{"flag_id":"91","flag_name":"PRF_DisableMeleeHitReactions"},"note":null},{"row":92,"cells":{"flag_id":"92","flag_name":"PRF_AllowHeadPropInVehicle"},"note":null},{"row":93,"cells":{"flag_id":"93","flag_name":"PRF_DontQuitMotionAiming"},"note":null},{"row":94,"cells":{"flag_id":"94","flag_name":"PRF_OpenDoorArmIK"},"note":null},{"row":95,"cells":{"flag_id":"95","flag_name":"PRF_UseTighterTurnSettingsForScript"},"note":null},{"row":96,"cells":{"flag_id":"96","flag_name":"PRF_DisableVoiceDrivenMouthMovement"},"note":null},{"row":97,"cells":{"flag_id":"97","flag_name":"PRF_SteerIntoSkids"},"note":null},{"row":98,"cells":{"flag_id":"98","flag_name":"PRF_AllowOpenDoorIkBeforeFullMovement"},"note":null},{"row":99,"cells":{"flag_id":"99","flag_name":"PRF_AllowHomingMissileLockOnInVehicle"},"note":null}],"table":9}