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
301300PRF_OnGuardDuty
302301
303302
304303
305304
306305
307306
308307
309308
310309
311310PRF_AllowPlayerPushing
312311PRF_IsAimingWithWeapon
313312is attacking
314313PRF_CanBeAttackedByFriendlyPed
315314
316315
317316
318317PRF_DisableHorseEvasion
319318PRF_DisableBumpDialogue
320319
321320is ped aiming with throw weapon by holding both mouse click buttons
322321
323322
324323
325324
326325
327326
328327
329328PRF_DisableLoiteringInLawOfficeTrigger
330329PRF_DontBreakOutFromScenarioEvenIfInCombat
331330PRF_DeputizedInRhodes
332331PRF_PartyInCamp
333332PRF_IsSwapTaskRunning
334333
335334
336335
337336
338337
339338
340339
341340
342341
343342
344343
345344ped run slowly when aiming with pistol or revolver ??
346345
347346
348347
349348
350349
351350
352351
353352
354353
355354
356355
357356
358357
359358is ped jumping/in the air??
360359is ped jumping/in the air??
361360PRF_SuppressHorseFlee
362361
363362
364363
365364PRF_IgnoreDrownAndKillVolumes
366365PRF_HostileTownWontAttackPlayerForMeleeWithThisPed
367366
368367
369368
370369
371370
372371