FelonyStartChase

From Nomad DB
Revision as of 13:47, 16 April 2020 by Cobra (talk | contribs) (Created page with "Starts a systemic chase of the specified faction on the specified pawn == Syntax == <syntaxhighlight lang="lua"> FelonyStartChase(targetEntityId, felonyType, felonyL...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Starts a systemic chase of the specified faction on the specified pawn

Syntax

FelonyStartChase(targetEntityId, felonyType, felonyLevel, startAction)
  • targetEntityId (string): ID of the pawn to start the chase on
  • felonyType (number): ID of the faction to chase the target entity
  • felonyLevel (number): Felony level to start the chase at (1 - 5)
  • startAction (number): Behavior to start the chase with (2 = default; 3 = search)
  • Returns (string): ID of the spawned entity.

Example

Starts a police chase on the local player.

FelonyStartChase(GetLocalPlayerEntityId(), 0, 3, 2)

Factions

ID Name
0 Police
1 AFI
3 P_8
6 T_13
9 Boys
10 Ridaz
11 UZulu
12 Bratva
15 Wolves

Related Pages