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 |
|---|---|---|---|---|
| 201 | 200 | PRF_EnableEagleEyeInVehicle | ||
| 202 | 201 | |||
| 203 | 202 | |||
| 204 | 203 | PRF_DisableDropCarriableInputs | ||
| 205 | 204 | set ped can run into steep slope | ||
| 206 | 205 | PRF_ForceLawToHighSuspicionOnTargetPlayer | ||
| 207 | 206 | is ped jumping/in the air?? | ||
| 208 | 207 | is ped jumping/in the air?? | ||
| 209 | 208 | |||
| 210 | 209 | |||
| 211 | 210 | |||
| 212 | 211 | |||
| 213 | 212 | |||
| 214 | 213 | |||
| 215 | 214 | |||
| 216 | 215 | PRF_PerformingWorkActivity | ||
| 217 | 216 | PRF_PerformingShadyActivity | ||
| 218 | 217 | PRF_DisableFriendlyAmbientAnimalFollowing | ||
| 219 | 218 | PRF_RunningDoorInteractionTask | ||
| 220 | 219 | |||
| 221 | 220 | |||
| 222 | 221 | |||
| 223 | 222 | |||
| 224 | 223 | PRF_DisableHorseAutoJump | ||
| 225 | 224 | PRF_DisableThrowCarriableInputs | ||
| 226 | 225 | set any regdoll infinite | ||
| 227 | 226 | |||
| 228 | 227 | PRF_NearCampfireScenario | ||
| 229 | 228 | |||
| 230 | 229 | |||
| 231 | 230 | |||
| 232 | 231 | |||
| 233 | 232 | |||
| 234 | 233 | |||
| 235 | 234 | |||
| 236 | 235 | |||
| 237 | 236 | PRF_IsHitchingHorse | ||
| 238 | 237 | PRF_DisableStuckResponse | ||
| 239 | 238 | |||
| 240 | 239 | set prevent aim (with right mouse button) | ||
| 241 | 240 | |||
| 242 | 241 | |||
| 243 | 242 | |||
| 244 | 243 | |||
| 245 | 244 | |||
| 246 | 245 | PRF_BlockKnockOffHatShots | ||
| 247 | 246 | |||
| 248 | 247 | PRF_DisableAutoJumping | ||
| 249 | 248 | PRF_InvertLookAroundControls | ||
| 250 | 249 | |||
| 251 | 250 | |||
| 252 | 251 | |||
| 253 | 252 | |||
| 254 | 253 | |||
| 255 | 254 | |||
| 256 | 255 | |||
| 257 | 256 | |||
| 258 | 257 | PRF_ForceIdleDismount | ||
| 259 | 258 | |||
| 260 | 259 | |||
| 261 | 260 | |||
| 262 | 261 | |||
| 263 | 262 | |||
| 264 | 263 | |||
| 265 | 264 | |||
| 266 | 265 | |||
| 267 | 266 | |||
| 268 | 267 | |||
| 269 | 268 | |||
| 270 | 269 | |||
| 271 | 270 | |||
| 272 | 271 | |||
| 273 | 272 | |||
| 274 | 273 | |||
| 275 | 274 | |||
| 276 | 275 | |||
| 277 | 276 | |||
| 278 | 277 | PRF_DisableCombatDive | ||
| 279 | 278 | |||
| 280 | 279 | |||
| 281 | 280 | |||
| 282 | 281 | |||
| 283 | 282 | |||
| 284 | 283 | |||
| 285 | 284 | |||
| 286 | 285 | |||
| 287 | 286 | |||
| 288 | 287 | PRF_DisableHorseManualJump | ||
| 289 | 288 | |||
| 290 | 289 | |||
| 291 | 290 | |||
| 292 | 291 | |||
| 293 | 292 | PRF_BlockFidgets | ||
| 294 | 293 | set hide radial reticle | ||
| 295 | 294 | PRF_DisableReticleSway | ||
| 296 | 295 | PRF_DetachLasso | ||
| 297 | 296 | |||
| 298 | 297 | |||
| 299 | 298 | |||
| 300 | 299 |