- Documentation
- Server functions
- isPedAggressive
Function
isPedAggressive
Checks whether an NPC is aggressive, i.e. whether it fights back on its own when someone hurts it. Aggression is set with setPedAggressive or the seventh argument of createPed.
Syntax
bool isPedAggressive(ped ped)Arguments
pedped- An NPC (a
pedelement).
Returns
true when the NPC is aggressive.
Example
if isPedAggressive(ped) then outputChatBox("Uważaj, ten gość oddaje!") end