MSK Scripts
TebexGithubDiscordMusiker15
  • MSK Scripts
    • Welcome
  • Common Issues
    • Keymaster
  • Miscellaneous
    • Change Notifications
  • Scripts
    • MSK Core
      • Installation
      • Functions
        • Client
          • Ace Permission
          • Commands
          • Coords
          • Player
          • Points
          • Request
          • Scaleform
          • UI
            • Input
            • Numpad
            • Progressbar
            • TextUI
          • Vehicle
        • Shared
          • String
          • Math
          • Table
          • Timeout
          • Vector
        • Server
          • Ace Permission
          • Ban System
          • Commands
          • Player
          • Scaleform
          • UI
            • Input
            • Numpad
            • Progressbar
            • TextUI
    • MSK Banking
      • Installation
        • Paycheck Transaction
      • Config
      • Exports
        • Client
        • Server
      • Events
        • Client
        • Server
      • Server Callbacks
    • MSK EngineToggle
      • Guides
      • Exports
        • Client
      • Event Handler
        • Client
        • Server
    • MSK Fuel
      • Config
      • Exports
        • Client
    • MSK Garage
      • Config
      • Exports
        • Client
    • MSK Handcuffs
      • Guides
        • General Edits for Jobs
        • Jaksam Job Creator
        • Multichar
        • ox_inventory
      • Config
      • Admin Commands
      • Exports
        • Client
        • Server
      • Events
        • Client
        • Server
      • Event Handlers
    • MSK Radio
      • Config
      • Exports
        • Client
        • Server
      • Events
        • Server
    • MSK Simcard
      • Installation
        • Config.Database
      • Config
    • MSK VehicleKeys
      • Guides
        • Installation
        • Integrations
      • Config
      • Admin Commands
      • Exports
        • Client
        • Server
    • MSK Whitelist
      • Config
      • Exports
        • Client
        • Server
    • MSK Weaponammo
Powered by GitBook
On this page
  • MSK.Numpad.Open
  • MSK.Numpad.Close
  • MSK.Numpad.Active
  1. Scripts
  2. MSK Core
  3. Functions
  4. Client
  5. UI

Numpad

Last updated 6 months ago

Preview

MSK.Numpad.Open

Opens an Numpad Window.

Parameters pin - string - The correct Pin showPin - boolean - Show Numbers or ****

Returns isCorrect - boolean - If the inserted pin is correct or not

Asynchronous

MSK.Numpad.Open('1234', true, function(isCorrect)
    print('Correct:', isCorrect)
end)

-- As an Export:
exports.msk_core:Numpad(pin, showPin, function(isCorrect)
    print('Correct:', isCorrect)
end

Synchronous

local isCorrect = MSK.Numpad.Open('1234', true)

-- As an Export:
local isCorrect = exports.msk_core:Numpad(pin, showPin)

MSK.Numpad.Close

Closes the current Numpad Window.

MSK.Numpad.Close()

-- As an Export:
exports.msk_core:CloseNumpad()

MSK.Numpad.Active

Checks if the Numpad Window is active

Returns isActive - boolean - whether the Numpad Window is active

local isActive = MSK.Numpad.Active()

-- As an Export:
local isActive = exports.msk_core:NumpadActive()