Scripting/Squirrel/Functions/Players/SetWantedLevel

From VC-MP Wiki

Jump to: navigation, search

NOTE: This function has been added in VC:MP 0.3z r2. It will not work in previous versions.


This function will set the wanted level for the given player.

Syntax

bool Player.SetWantedLevel( int level )

Arguments

  • level - The new wanted level

Example

This command will change a player wanted level from 1 to 6:

function onPlayerCommand( player, cmd, text )
{
     if ( cmd == "wanted" )
     {
          player.WantedLevel( 1 );
     }
}

MADE BY WACEK

Notes

TODO - Example notes and used functions

Related Functions

Personal tools
squirrel scripting