SET_WANTED_LEVEL_MULTIPLIER
Hash
0xD7FA719CB54866C2Runtime name
SetWantedLevelMultiplierNamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x020E5F00CDA207BASignature
void SET_WANTED_LEVEL_MULTIPLIER(float multiplier);Parameters
| Name | Type | Description |
|---|---|---|
multiplier | float | — |
Returns void
Usage
SetWantedLevelMultiplier(multiplier)
-- always works, by hash
Citizen.InvokeNative(0xD7FA719CB54866C2, multiplier)JavaScript and C#
SetWantedLevelMultiplier(multiplier);
// by hash
Citizen.invokeNative('0xD7FA719CB54866C2', multiplier + 0.0000001);Function.Call((Hash)0xD7FA719CB54866C2, multiplier);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
See also
_GET_WANTED_LEVEL_MULTIPLIERReturns -1.0f if no multiplier has been set
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.