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 |
|---|---|---|---|---|
| 301 | 300 | PRF_OnGuardDuty | ||
| 302 | 301 | |||
| 303 | 302 | |||
| 304 | 303 | |||
| 305 | 304 | |||
| 306 | 305 | |||
| 307 | 306 | |||
| 308 | 307 | |||
| 309 | 308 | |||
| 310 | 309 | |||
| 311 | 310 | PRF_AllowPlayerPushing | ||
| 312 | 311 | PRF_IsAimingWithWeapon | ||
| 313 | 312 | is attacking | ||
| 314 | 313 | PRF_CanBeAttackedByFriendlyPed | ||
| 315 | 314 | |||
| 316 | 315 | |||
| 317 | 316 | |||
| 318 | 317 | PRF_DisableHorseEvasion | ||
| 319 | 318 | PRF_DisableBumpDialogue | ||
| 320 | 319 | |||
| 321 | 320 | is ped aiming with throw weapon by holding both mouse click buttons | ||
| 322 | 321 | |||
| 323 | 322 | |||
| 324 | 323 | |||
| 325 | 324 | |||
| 326 | 325 | |||
| 327 | 326 | |||
| 328 | 327 | |||
| 329 | 328 | PRF_DisableLoiteringInLawOfficeTrigger | ||
| 330 | 329 | PRF_DontBreakOutFromScenarioEvenIfInCombat | ||
| 331 | 330 | PRF_DeputizedInRhodes | ||
| 332 | 331 | PRF_PartyInCamp | ||
| 333 | 332 | PRF_IsSwapTaskRunning | ||
| 334 | 333 | |||
| 335 | 334 | |||
| 336 | 335 | |||
| 337 | 336 | |||
| 338 | 337 | |||
| 339 | 338 | |||
| 340 | 339 | |||
| 341 | 340 | |||
| 342 | 341 | |||
| 343 | 342 | |||
| 344 | 343 | |||
| 345 | 344 | ped run slowly when aiming with pistol or revolver ?? | ||
| 346 | 345 | |||
| 347 | 346 | |||
| 348 | 347 | |||
| 349 | 348 | |||
| 350 | 349 | |||
| 351 | 350 | |||
| 352 | 351 | |||
| 353 | 352 | |||
| 354 | 353 | |||
| 355 | 354 | |||
| 356 | 355 | |||
| 357 | 356 | |||
| 358 | 357 | |||
| 359 | 358 | is ped jumping/in the air?? | ||
| 360 | 359 | is ped jumping/in the air?? | ||
| 361 | 360 | PRF_SuppressHorseFlee | ||
| 362 | 361 | |||
| 363 | 362 | |||
| 364 | 363 | |||
| 365 | 364 | PRF_IgnoreDrownAndKillVolumes | ||
| 366 | 365 | PRF_HostileTownWontAttackPlayerForMeleeWithThisPed | ||
| 367 | 366 | |||
| 368 | 367 | |||
| 369 | 368 | |||
| 370 | 369 | |||
| 371 | 370 | |||
| 372 | 371 |