Player::setAsCop

From RAGE Multiplayer Wiki
Revision as of 23:45, 6 May 2017 by Marty uploader (talk | contribs) (yay)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Turns the desired ped into a cop. If you use this on the player ped, you will become almost invisible to cops dispatched for you. You will also report your own crimes, get a generic cop voice, get a cop-vision-cone on the radar, and you will be unable to shoot at other cops. SWAT and Army will still shoot at you. Toggling ped as 'false' has no effect; you must change p0's ped model to disable the effect.

Syntax

player.setAsCop(toggle);

Required Arguments

  • toggle: Boolean

Return value

  • Undefined

Example

// todo

See also