GetPlayerWantedLevel

From GT-MP
Jump to: navigation, search
GetPlayerWantedLevel
Shared Function
Utilities-terminal.png Server-Side System-users.png Client-Side
Csharp.png C# Javascript.png JavaScript

Returns the player wanted level.


Icon-warning.png WARNING: This function is synchronous and could take a long time to return. Do not use this if your resource is not multithreaded.

If you know what you're doing and want to use this function anyway, consider reading meta.xml for more information about multithreaded resources.


Syntax

API.getPlayerWantedLevel(Client player);

Required Arguments

  • player: parameter input should be in Client type.

NOTE: This function returns data in int type.

Usage example(s)

Example Description

API.getPlayerWantedLevel(Client player);


References