setFakeWantedLevel
SET_FAKE_WANTED_LEVEL0x1454F2448DE30163The GTA V native SET_FAKE_WANTED_LEVEL of the MISC namespace, as LS:MP client scripts call it: the global function setFakeWantedLevel, in JavaScript and in Lua.
setFakeWantedLevel(fakeWantedLevel: number): voidsetFakeWantedLevel(fakeWantedLevel: integer)Usage
JavaScript
setFakeWantedLevel(fakeWantedLevel);Lua
setFakeWantedLevel(fakeWantedLevel)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
fakeWantedLevel | int | number | integer |
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.
Sets a visually fake wanted level on the user interface. Used by Rockstar's scripts to "override" regular wanted levels and make custom ones while the real wanted level and multipliers are still in effect.
Max is 6, anything above this makes it just 6. Also the mini-map gets the red & blue flashing effect.
Reference
- Namespace
- Misc MISC
- In the game
void SET_FAKE_WANTED_LEVEL(int fakeWantedLevel)- Hash
0x1454F2448DE30163