setWantedLevelDifficulty
SET_WANTED_LEVEL_DIFFICULTY0x9B0BB33B04405E7AThe GTA V native SET_WANTED_LEVEL_DIFFICULTY of the PLAYER namespace, as LS:MP client scripts call it: the global function setWantedLevelDifficulty, in JavaScript and in Lua.
setWantedLevelDifficulty(player: Player, difficulty: number): voidsetWantedLevelDifficulty(player: Player, difficulty: number)Usage
JavaScript
setWantedLevelDifficulty(player, difficulty);Lua
setWantedLevelDifficulty(player, difficulty)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
player | Player | number | integer |
difficulty | float | number | number |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Max value is 1.0
Reference
- Namespace
- Player PLAYER
- In the game
void SET_WANTED_LEVEL_DIFFICULTY(Player player, float difficulty)- Hash
0x9B0BB33B04405E7A