ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. setWeaponWheelEnabled

Function

setWeaponWheelEnabled

ClientWeaponsTrilogy Hub only

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

enabledbool
false = 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