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