Skip to main content

PedAttackPlayer

Description​

Commands a ped to attack the player. Functions similarly to PedAttack, but targets the player directly.

function PedAttackPlayer(ped, priority) --[[ ... ]] end

Parameters​

  • ped: integer - The pedestrian who will attack the player.
  • priority: integer - Determines how focused the attacker is:

1: Low priority (can be distracted).

3: High priority (relentless aggression).

Return Values​

None.

Example​

None.