Skip to main content

PedAttack

Description

Commands one ped to attack another. The priority value affects how committed the attacker is to the target.

function PedAttack(ped, victim, priority) --[[ ... ]] end

Parameters

  • ped: integer - The attacker ped.
  • victim: integer - The target ped to be attacked.
  • priority: integer - Determines how focused the attacker is:

1: Low priority (can be distracted).

3: High priority (relentless aggression).

Return Values

None.

Example

None.