RedM Natives

CPED RESET FLAGS

CategoryAI
Rows372

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)
<h2>Some known reset ped flags.</h2>

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)
<h2>Some known reset ped flags.</h2>
372 rows
#flag_idflag_nameflag_descriptionNote
10PRF_IsAiming
21PRF_DisablePlayerLockon
32PRF_DisablePlayerJumping
43PRF_AllowUpdateIfNoCollisionLoaded
54PRF_DisableSecondaryAnimationTasks
65PRF_SuppressGunfireEvents
76PRF_InfiniteStamina
87PRF_BlockWeaponReactionsUnlessDead
98PRF_ForcePlayerFiring
109PRF_ForcePeekFromCover
1110PRF_ForcePedToStrafe
1211PRF_ForceMeleeStrafingAnims
1312PRF_UseKinematicPhysicsped pushes any physical objects out of its way when it moves into them
1413PRF_ClearLockonTarget
1514PRF_ForcePedToUseScripCamHeading
1615PRF_IgnoreTargetsCoverForLOS
1716PRF_DisableCrouchWhileInCover
1817PRF_ForceRunningSpeedForFragSmashingpeds will smash through frag objects when playing custom anims
1918PRF_ExtraLongWeaponRange
2019PRF_ForcePlayerToEnterVehicleThroughDirectDoorOnly
2120PRF_TaskCullExtraFarAway
2221PRF_DisableAutoVaulting
2322PRF_UseBulletPenetration
2423PRF_ForceAimAtHead
2524PRF_DisableSeeThroughChecksWhenTargetingLine of Sight checks will fail if any materials with 'see through' materials found
2625PRF_CannotBeTargetedByAI
2726PRF_ForceInjuryAfterStunned
2827PRF_BlockWeaponFire
2928PRF_ExpandPedCapsuleFromSkeleton
3029PRF_SuppressInAirEvent
3130PRF_AllowTasksIncompatibleWithMotion
3231PRF_SuppressLethalMeleeActions
3332PRF_MakeHeadInvisble
3433PRF_NoAutoRunWhenFiring
3534PRF_DisableTakeOffParachutePack
3635PRF_IgnoreCombatTaunts
3736PRF_PreventAllMeleeTakedowns
3837PRF_PreventFailedMeleeTakedowns
3938PRF_UseTighterAvoidanceSettings
4039PRF_DisableDropDowns
4140PRF_DisableTakeOffScubaGear
4241PRF_DisableActionMode
4342PRF_UseHeadOrientationForPerception
4443PRF_DisableJumpRagdollOnCollision
4544PRF_DisableParachuting
4645PRF_KeepParachutePackOnAfterTeleport
4746PRF_DontRaiseFistsWhenLockedOn
4847PRF_PreferMeleeBodyIkHitReaction
4948PRF_DisableFriendlyGunReactAudio
5049PRF_DisableAgitationTriggers
5150PRF_DisableNMForRiverRapids
5251PRF_PreventGoingIntoStillInVehicleState
5352PRF_UseFastEnterExitVehicleRates
5453PRF_DisableAgitation
5554PRF_DisableTalk
5655PRF_UseProbeSlopeStairsDetection
5756PRF_DisableVehicleDamageReactions
5857PRF_DisablePotentialBlastReactions
5958PRF_OnlyAllowLeftArmDoorIk
6059PRF_OnlyAllowRightArmDoorIk
6160PRF_DisableFlashLight
6261PRF_ForceEnableFlashLightForAI
6362PRF_DisableCombatAudio
6463PRF_DisableCoverAudio
6564
6665PRF_EnablePressAndReleaseDives
6766PRF_OnlyExitVehicleOnButtonRelease
6867PRF_ConsiderAsPlayerCoverThreatWithoutLOS
6968PRF_IgnoreVehicleEntryCollisionTests
7069PRF_PreventGoingIntoShuntInVehicleState
7170PRF_EnableVoiceDrivenMouthMovement
7271PRF_UseTighterEnterVehicleSettings
7372PRF_InRaceMode
7473PRF_DisableAmbientMeleeMoves
7574PRF_AllowSpecialAbilityInVehicle
7675PRF_DisableInVehicleActions
7776PRF_ForceInstantSteeringWheelIkBlendIn
7877PRF_IgnoreThreatEngagePlayerCoverBonus
7978PRF_DontCloseVehicleDoor
8079PRF_SkipExplosionOcclusion
8180PRF_MeleeStrikeAgainstNonPed
8281PRF_IgnoreNavigationForDoorArmIK
8382PRF_DisableAimingWhileParachuting
8483PRF_DisablePedCollisionWithPedEvent
8584PRF_IgnoreVelocityWhenClosingVehicleDoor
8685PRF_DontWalkRoundObjects
8786PRF_DisablePedEnteredMyVehicleEvents
8887PRF_DisableInVehiclePedVariationBlocking
8988NPC grabbed player ped ??
9089PRF_DisableAutoForceOutWhenBlowingUpCar
9190PRF_DisableDustOffAnims
9291PRF_DisableMeleeHitReactions
9392PRF_AllowHeadPropInVehicle
9493PRF_DontQuitMotionAiming
9594PRF_OpenDoorArmIK
9695PRF_UseTighterTurnSettingsForScript
9796PRF_DisableVoiceDrivenMouthMovement
9897PRF_SteerIntoSkids
9998PRF_AllowOpenDoorIkBeforeFullMovement
10099PRF_AllowHomingMissileLockOnInVehicle