Skip to content

Instantly share code, notes, and snippets.

View gtasnail's full-sized avatar
🐲

GTASnail gtasnail

🐲
View GitHub Profile
@gtasnail
gtasnail / pedResetFlags.lua
Created April 11, 2024 22:45
All known ped reset config flags | SetPedResetFlag SET_PED_RESET_FLAG |
PRF_DisablePlayerJumping = 46, -- Disable jumping
PRF_DisablePlayerVaulting = 47, -- Disable climbing / vaulting
PRF_AllowUpdateIfNoCollisionLoaded = 55, -- Don't freeze this ped for not having bounds loaded around it
PRF_DisableSecondaryAnimationTasks = 58, -- Disable upper body animtion tasks such as shove ped and open door anims
PRF_SearchForClosestDoor = 60, -- Will check for the closest door in proximity and store it off
PRF_SupressGunfireEvents = 62, -- Supresses AI generating fire events, so civilians wont be shocked or react, for use in a shooting range for example
PRF_InfiniteStamina = 63, -- Currently just for mounts, but could be expanded to anything with stamina
PRF_BlockWeaponReactionsUnlessDead = 64, -- Stops the ped from reacting to damage events (such as shots / fires, etc). The ped will still take damage while this flag is active. Note: this does not block explosion reactions.
PRF_ForcePlayerFiring = 65, -- Forces player to fire even if they aren't pressing fire
PRF_For