- Documentation
- Client functions
- setWeaponWheelEnabled
Function
setWeaponWheelEnabled
Completely disables or restores the game's weapon wheel. A disabled wheel never opens: no menu, no slow motion and no grey background. Switching weapons with the mouse wheel still works. The wheel is enabled by default. The setting applies to this game only; if the wheel was open, it closes right away.
Syntax
bool setWeaponWheelEnabled(bool enabled)Arguments
enabledboolfalse= no wheel,true= wheel as in the game.
Returns
true on success, false on a wrong argument.
Example
addEventHandler("onClientResourceStart", resourceRoot, function()
setWeaponWheelEnabled(false)
end)
See also
isWeaponWheelEnabledChecks whether the weapon wheel is enabled.setSlowMotionEnabledTurns the game's slow motion on or off: at the weapon wheel ("wheel") and during stunt jumps ("stunt"). Both are off by default, because in multiplayer slowing down one player breaks the game. On the server the setting applies to every player, on the client only to that game.