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
201200PRF_EnableEagleEyeInVehicle
202201
203202
204203PRF_DisableDropCarriableInputs
205204set ped can run into steep slope
206205PRF_ForceLawToHighSuspicionOnTargetPlayer
207206is ped jumping/in the air??
208207is ped jumping/in the air??
209208
210209
211210
212211
213212
214213
215214
216215PRF_PerformingWorkActivity
217216PRF_PerformingShadyActivity
218217PRF_DisableFriendlyAmbientAnimalFollowing
219218PRF_RunningDoorInteractionTask
220219
221220
222221
223222
224223PRF_DisableHorseAutoJump
225224PRF_DisableThrowCarriableInputs
226225set any regdoll infinite
227226
228227PRF_NearCampfireScenario
229228
230229
231230
232231
233232
234233
235234
236235
237236PRF_IsHitchingHorse
238237PRF_DisableStuckResponse
239238
240239set prevent aim (with right mouse button)
241240
242241
243242
244243
245244
246245PRF_BlockKnockOffHatShots
247246
248247PRF_DisableAutoJumping
249248PRF_InvertLookAroundControls
250249
251250
252251
253252
254253
255254
256255
257256
258257PRF_ForceIdleDismount
259258
260259
261260
262261
263262
264263
265264
266265
267266
268267
269268
270269
271270
272271
273272
274273
275274
276275
277276
278277PRF_DisableCombatDive
279278
280279
281280
282281
283282
284283
285284
286285
287286
288287PRF_DisableHorseManualJump
289288
290289
291290
292291
293292PRF_BlockFidgets
294293set hide radial reticle
295294PRF_DisableReticleSway
296295PRF_DetachLasso
297296
298297
299298
300299