{"slug":"AI/CPED_CONFIG_FLAGS","category":"AI","title":"CPED CONFIG FLAGS","kind":"markdown","intro":"","body":"## Some CPED Config Flags\n\nTo set Config Ped Flags u dont need to call it every frame (unlike CPed Reset Flags).\n\n## Example\n\n```lua\n\tCitizen.InvokeNative(0x1913FE4CBF41C463,PlayerPedId(),254,true)   -- SetPedConfigFlag, flag 254 gives full immunity vs melee and range attack\n```\n\n<h2>Some known Config Ped Flags.</h2>","tables":[{"id":8,"name":"Some known Config Ped Flags.","columns":["flagid","flag_name","flag_description","default_value_for_player_ped"],"rows":603}],"sourceUrl":"https://github.com/femga/rdr3_discoveries/tree/477aaaccadb7f0c042286611d9939009636cff12/AI/CPED_CONFIG_FLAGS","rows":[{"row":0,"cells":{"flagid":"0","flag_name":"PCF_AllowMedicsToAttend"},"note":null},{"row":1,"cells":{"flagid":"1"},"note":null},{"row":2,"cells":{"flagid":"2","flag_name":"PCF_DontAllowToBeDraggedOutOfVehicle"},"note":null},{"row":3,"cells":{"flagid":"3","flag_name":"PCF_GetOutUndriveableVehicle","default_value_for_player_ped":"true"},"note":null},{"row":4,"cells":{"flagid":"4","flag_name":"PCF_HasBounty"},"note":null},{"row":5,"cells":{"flagid":"5","flag_name":"PCF_WillFlyThroughWindscreen","default_value_for_player_ped":"true"},"note":null},{"row":6,"cells":{"flagid":"6","flag_name":"PCF_DontInfluenceWantedLevel"},"note":null},{"row":7,"cells":{"flagid":"7","flag_name":"PCF_DisableLockonToRandomPeds"},"note":null},{"row":8,"cells":{"flagid":"8","flag_name":"PCF_AllowLockonToFriendlyPlayers"},"note":null},{"row":9,"cells":{"flagid":"9","flag_name":"PCF_KilledByStealth"},"note":null},{"row":10,"cells":{"flagid":"10","flag_name":"PCF_KilledByTakedown"},"note":null},{"row":11,"cells":{"flagid":"11","flag_name":"PCF_Knockedout"},"note":null},{"row":12,"cells":{"flagid":"12","flag_name":"PCF_IsAimingGun"},"note":null},{"row":13,"cells":{"flagid":"13","flag_name":"PCF_ForcedAim"},"note":null},{"row":14,"cells":{"flagid":"14","flag_name":"PCF_OpenDoorArmIK","default_value_for_player_ped":"true"},"note":null},{"row":15,"cells":{"flagid":"15","flag_name":"PCF_DontActivateRagdollFromVehicleImpact"},"note":null},{"row":16,"cells":{"flagid":"16","flag_name":"PCF_DontActivateRagdollFromBulletImpact"},"note":null},{"row":17,"cells":{"flagid":"17","flag_name":"PCF_DontActivateRagdollFromExplosions"},"note":null},{"row":18,"cells":{"flagid":"18","flag_name":"PCF_DontActivateRagdollFromFire"},"note":null},{"row":19,"cells":{"flagid":"19","flag_name":"PCF_DontActivateRagdollFromElectrocution"},"note":null},{"row":20,"cells":{"flagid":"20","flag_name":"PCF_KeepWeaponHolsteredUnlessFired"},"note":null},{"row":21,"cells":{"flagid":"21","flag_name":"PCF_ForceControlledKnockout","flag_description":"this ped will be killed by any strong hit (with flag 456 will be knocked out)"},"note":null},{"row":22,"cells":{"flagid":"22","flag_name":"PCF_FallsOutOfVehicleWhenKilled"},"note":null},{"row":23,"cells":{"flagid":"23","flag_name":"PCF_GetOutBurningVehicle","default_value_for_player_ped":"true"},"note":null},{"row":24,"cells":{"flagid":"24","flag_name":"PCF_RunFromFiresAndExplosions","default_value_for_player_ped":"true"},"note":null},{"row":25,"cells":{"flagid":"25","flag_name":"PCF_TreatAsPlayerDuringTargeting"},"note":null},{"row":26,"cells":{"flagid":"26","flag_name":"PCF_DisableMelee"},"note":null},{"row":27,"cells":{"flagid":"27","flag_name":"PCF_DisableUnarmedDrivebys"},"note":null},{"row":28,"cells":{"flagid":"28","flag_name":"PCF_JustGetsPulledOutWhenElectrocuted"},"note":null},{"row":29,"cells":{"flagid":"29","flag_name":"PCF_DisableMeleeHitReactions"},"note":null},{"row":30,"cells":{"flagid":"30","flag_name":"PCF_WillNotHotwireLawEnforcementVehicle"},"note":null},{"row":31,"cells":{"flagid":"31","flag_name":"PCF_WillCommandeerRatherThanJack"},"note":null},{"row":32,"cells":{"flagid":"32","flag_name":"PCF_ForcePedToFaceLeftInCover"},"note":null},{"row":33,"cells":{"flagid":"33","flag_name":"PCF_ForcePedToFaceRightInCover"},"note":null},{"row":34,"cells":{"flagid":"34","flag_name":"PCF_BlockPedFromTurningInCover"},"note":null},{"row":35,"cells":{"flagid":"35","flag_name":"PCF_KeepRelationshipGroupAfterCleanUp","default_value_for_player_ped":"true"},"note":null},{"row":36,"cells":{"flagid":"36","flag_name":"PCF_ForcePedToBeDragged"},"note":null},{"row":37,"cells":{"flagid":"37","flag_name":"PCF_PreventPedFromReactingToBeingJacked"},"note":null},{"row":38,"cells":{"flagid":"38","flag_name":"PCF_RemoveDeadExtraFarAway"},"note":null},{"row":39,"cells":{"flagid":"39","flag_name":"PCF_ArrestResult"},"note":null},{"row":40,"cells":{"flagid":"40","flag_name":"PCF_CanAttackFriendly"},"note":null},{"row":41,"cells":{"flagid":"41","flag_name":"PCF_WillJackAnyPlayer"},"note":null},{"row":42,"cells":{"flagid":"42","flag_name":"PCF_WillJackWantedPlayersRatherThanStealCar"},"note":null},{"row":43,"cells":{"flagid":"43","flag_name":"PCF_DisableLadderClimbing"},"note":null},{"row":44,"cells":{"flagid":"44","flag_name":"PCF_CowerInsteadOfFlee"},"note":null},{"row":45,"cells":{"flagid":"45","flag_name":"PCF_CanActivateRagdollWhenVehicleUpsideDown","default_value_for_player_ped":"true"},"note":null},{"row":46,"cells":{"flagid":"46","flag_name":"PCF_AlwaysRespondToCriesForHelp"},"note":null},{"row":47,"cells":{"flagid":"47","flag_name":"PCF_DisableBloodPoolCreation","flag_description":"disable blood pool, when ped is dead"},"note":null},{"row":48,"cells":{"flagid":"48","flag_name":"PCF_ShouldFixIfNoCollision"},"note":null},{"row":49,"cells":{"flagid":"49","flag_name":"PCF_CanPerformArrest"},"note":null},{"row":50,"cells":{"flagid":"50","flag_name":"PCF_CanPerformUncuff"},"note":null},{"row":51,"cells":{"flagid":"51","flag_name":"PCF_CanBeArrested"},"note":null},{"row":52,"cells":{"flagid":"52","flag_name":"PCF_PlayerPreferFrontSeatMP"},"note":null},{"row":53,"cells":{"flagid":"53","flag_name":"PCF_DontEnterVehiclesInPlayersGroup"},"note":null},{"row":54,"cells":{"flagid":"54","flag_name":"PCF_PreventAllMeleeTaunts"},"note":null},{"row":55,"cells":{"flagid":"55","flag_name":"PCF_ForceDirectEntry"},"note":null},{"row":56,"cells":{"flagid":"56","flag_name":"PCF_AlwaysSeeApproachingVehicles"},"note":null},{"row":57,"cells":{"flagid":"57","flag_name":"PCF_CanDiveAwayFromApproachingVehicles"},"note":null},{"row":58,"cells":{"flagid":"58","flag_name":"PCF_AllowPlayerToInterruptVehicleEntryExit"},"note":null},{"row":59,"cells":{"flagid":"59","flag_name":"PCF_OnlyAttackLawIfPlayerIsWanted"},"note":null},{"row":60,"cells":{"flagid":"60","flag_name":"PCF_PedsJackingMeDontGetIn"},"note":null},{"row":61,"cells":{"flagid":"61","flag_name":"PCF_PedIgnoresAnimInterruptEvents"},"note":null},{"row":62,"cells":{"flagid":"62","flag_name":"PCF_IsInCustody"},"note":null},{"row":63,"cells":{"flagid":"63","flag_name":"PCF_ForceStandardBumpReactionThresholds","flag_description":"ped will be more likely to perform NaturalMotion reaction when bumped by a player, friendly vehicle or ragdolling ped"},"note":null},{"row":64,"cells":{"flagid":"64","flag_name":"PCF_LawWillOnlyAttackIfPlayerIsWanted"},"note":null},{"row":65,"cells":{"flagid":"65","flag_name":"PCF_PreventAutoShuffleToDriversSeat"},"note":null},{"row":66,"cells":{"flagid":"66","flag_name":"PCF_UseKinematicModeWhenStationary"},"note":null},{"row":67,"cells":{"flagid":"67","flag_name":"PCF_PlayerIsWeird","flag_description":"ped periodically generates shocking events for being weird"},"note":null},{"row":68,"cells":{"flagid":"68","flag_name":"PCF_DoNothingWhenOnFootByDefault"},"note":null},{"row":69,"cells":{"flagid":"69","flag_name":"PCF_DontReactivateRagdollOnPedCollisionWhenDead"},"note":null},{"row":70,"cells":{"flagid":"70","flag_name":"PCF_DontActivateRagdollOnVehicleCollisionWhenDead"},"note":null},{"row":71,"cells":{"flagid":"71","flag_name":"PCF_HasBeenInArmedCombat","flag_description":"if player has ever been in non-melee combat"},"note":null},{"row":72,"cells":{"flagid":"72","flag_name":"PCF_Avoidance_Ignore_All"},"note":null},{"row":73,"cells":{"flagid":"73","flag_name":"PCF_Avoidance_Ignored_by_All"},"note":null},{"row":74,"cells":{"flagid":"74","flag_name":"PCF_Avoidance_Ignore_Group1"},"note":null},{"row":75,"cells":{"flagid":"75","flag_name":"PCF_Avoidance_Member_of_Group1"},"note":null},{"row":76,"cells":{"flagid":"76","flag_name":"PCF_ForcedToUseSpecificGroupSeatIndex","flag_description":"\"Specific Group Seat Index\" is set by native SET_PED_GROUP_MEMBER_PASSENGER_INDEX"},"note":null},{"row":77,"cells":{"flagid":"77","flag_name":"PCF_DisableExplosionReactions"},"note":null},{"row":78,"cells":{"flagid":"78","flag_name":"PCF_WaitingForPlayerControlInterrupt"},"note":null},{"row":79,"cells":{"flagid":"79","flag_name":"PCF_ForcedToStayInCover"},"note":null},{"row":80,"cells":{"flagid":"80","flag_name":"PCF_GeneratesSoundEvents","default_value_for_player_ped":"true"},"note":null},{"row":81,"cells":{"flagid":"81"},"note":null},{"row":82,"cells":{"flagid":"82","flag_name":"PCF_AllowToBeTargetedInAVehicle"},"note":null},{"row":83,"cells":{"flagid":"83","flag_name":"PCF_WaitForDirectEntryPointToBeFreeWhenExiting"},"note":null},{"row":84,"cells":{"flagid":"84","flag_name":"PCF_OnlyRequireOnePressToExitVehicle"},"note":null},{"row":85,"cells":{"flagid":"85","flag_name":"PCF_ForceExitToSkyDive","flag_description":"ped does skydive exit from vehicle"},"note":null},{"row":86,"cells":{"flagid":"86","flag_name":"PCF_DisableExitToSkyDive"},"note":null},{"row":87,"cells":{"flagid":"87","flag_name":"PCF_DisablePedAvoidance"},"note":null},{"row":88,"cells":{"flagid":"88"},"note":null},{"row":89,"cells":{"flagid":"89","flag_name":"PCF_DisablePanicInVehicle"},"note":null},{"row":90,"cells":{"flagid":"90","flag_name":"PCF_AllowedToDetachTrailer","default_value_for_player_ped":"true"},"note":null},{"row":91,"cells":{"flagid":"91","flag_name":"PCF_ForceSkinCharacterCloth"},"note":null},{"row":92,"cells":{"flagid":"92","flag_name":"PCF_LeaveEngineOnWhenExitingVehicles"},"note":null},{"row":93,"cells":{"flagid":"93","flag_name":"PCF_PhoneDisableTextingAnimations"},"note":null},{"row":94,"cells":{"flagid":"94","flag_name":"PCF_PhoneDisableTalkingAnimations"},"note":null},{"row":95,"cells":{"flagid":"95","flag_name":"PCF_PhoneDisableCameraAnimations"},"note":null},{"row":96,"cells":{"flagid":"96","flag_name":"PCF_DisableBlindFiringInShotReactions"},"note":null},{"row":97,"cells":{"flagid":"97","flag_name":"PCF_AllowNearbyCoverUsage","flag_description":"allow to other peds (not current one) to take the nearest cover to this ped"},"note":null},{"row":98,"cells":{"flagid":"98","flag_name":"PCF_CanAttackNonWantedPlayerAsLaw"},"note":null},{"row":99,"cells":{"flagid":"99","flag_name":"PCF_WillTakeDamageWhenVehicleCrashes","default_value_for_player_ped":"true"},"note":null}],"table":8}