SetPedStatic
Freeze the ped, make it ignore any event (ex. shooting) and puts it invincible
Argument | Data Type | Needed | Default | Description |
---|---|---|---|---|
ped | entity | - | The ped that need to be modified | |
active | boolean | - | If active or no |
Dont need to be called every frame
Example
SetPedStatic(ped, true)
Old method
FreezeEntityPosition(ped, true)
SetEntityInvincible(ped, true)
SetBlockingOfNonTemporaryEvents(ped, true)
Last update: October 31, 2022
Created: April 12, 2022
Created: April 12, 2022