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 |
|---|---|---|---|---|
| 101 | 100 | PRF_AllowCloneForcePostCameraAIUpdate | ||
| 102 | 101 | PRF_DisableHighHeels | ||
| 103 | 102 | PRF_DontUseSprintEnergy | ||
| 104 | 103 | |||
| 105 | 104 | |||
| 106 | 105 | |||
| 107 | 106 | |||
| 108 | 107 | |||
| 109 | 108 | PRF_DisableDoorInteraction | ||
| 110 | 109 | PRF_DisableMaterialCollisionDamage | ||
| 111 | 110 | PRF_DisableMPFriendlyLockon | ||
| 112 | 111 | PRF_DisableMPFriendlyLethalMeleeActions | ||
| 113 | 112 | PRF_IfLeaderStopsSeekCover | ||
| 114 | 113 | PRF_PreferFrontSeat | ||
| 115 | 114 | |||
| 116 | 115 | |||
| 117 | 116 | |||
| 118 | 117 | |||
| 119 | 118 | |||
| 120 | 119 | Revive instead of bleeding out this frame... | ||
| 121 | 120 | PRF_UseInteriorCapsuleSettings | ||
| 122 | 121 | PRF_IsClosingVehicleDoor | ||
| 123 | 122 | PRF_DisableWallHitAnimation | ||
| 124 | 123 | PRF_PlayAgitatedAnimsInVehicle | ||
| 125 | 124 | PRF_IsSeatShuffling | ||
| 126 | 125 | PRF_AllowControlRadioInAnySeatInMP | ||
| 127 | 126 | PRF_DisableSpycarTransformation | ||
| 128 | 127 | PRF_BlockHeadbobbingToRadio | ||
| 129 | 128 | PRF_DisableLawEvasion | ||
| 130 | 129 | PRF_DisableAmbientPrompts | ||
| 131 | 130 | |||
| 132 | 131 | PRF_DisableLasso | ||
| 133 | 132 | |||
| 134 | 133 | |||
| 135 | 134 | PRF_CannotBeTargetedByAnimals | ||
| 136 | 135 | |||
| 137 | 136 | |||
| 138 | 137 | |||
| 139 | 138 | |||
| 140 | 139 | PRF_DisableStaminaRegen | set prevent ped stamina refill | |
| 141 | 140 | |||
| 142 | 141 | |||
| 143 | 142 | |||
| 144 | 143 | |||
| 145 | 144 | |||
| 146 | 145 | |||
| 147 | 146 | |||
| 148 | 147 | |||
| 149 | 148 | |||
| 150 | 149 | |||
| 151 | 150 | |||
| 152 | 151 | |||
| 153 | 152 | |||
| 154 | 153 | |||
| 155 | 154 | |||
| 156 | 155 | PRF_IsEnteringCover | ||
| 157 | 156 | PRF_IsExitingCover | ||
| 158 | 157 | PRF_NoTimeDelayBeforeShot | ||
| 159 | 158 | PRF_ForceScriptControlledRagdoll | ||
| 160 | 159 | |||
| 161 | 160 | |||
| 162 | 161 | |||
| 163 | 162 | PRF_ForceCover | ||
| 164 | 163 | PRF_ForceAimingInCover | ||
| 165 | 164 | PRF_DisableCoverPersonalityAnimations | ||
| 166 | 165 | PRF_ForceMotionInCoverStateToPersist | ||
| 167 | 166 | PRF_ForceBackAgainstWallCover | ||
| 168 | 167 | |||
| 169 | 168 | PRF_DisablePlayerClimbing | ||
| 170 | 169 | PRF_NeverDieFromCapsuleRagdollSettings | ||
| 171 | 170 | |||
| 172 | 171 | |||
| 173 | 172 | |||
| 174 | 173 | |||
| 175 | 174 | |||
| 176 | 175 | |||
| 177 | 176 | |||
| 178 | 177 | PRF_PreventFleeFromIntimidatedTask | ||
| 179 | 178 | PRF_IsNearLootable | ||
| 180 | 179 | |||
| 181 | 180 | PRF_EnableGhostMode | set ped don't have collision | |
| 182 | 181 | PRF_DisableAmbientConversations | ||
| 183 | 182 | |||
| 184 | 183 | |||
| 185 | 184 | PRF_DisableAutoGreets | ||
| 186 | 185 | PRF_DisableNegativeInteractions | ||
| 187 | 186 | PRF_FishAllowedOutOfWater | ||
| 188 | 187 | PRF_DisableDynamicPlayerScenarios | ||
| 189 | 188 | |||
| 190 | 189 | |||
| 191 | 190 | |||
| 192 | 191 | |||
| 193 | 192 | |||
| 194 | 193 | |||
| 195 | 194 | |||
| 196 | 195 | PRF_DisableHorseHitching | ||
| 197 | 196 | set prevent pick up objects,searching drawers and saddlebags, entering horses and vehicles, prevent camera changing | ||
| 198 | 197 | |||
| 199 | 198 | PRF_DisablePlayerAutoCrouch | ||
| 200 | 199 |