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.Input.Open
  • MSK.Input.Close
  1. Scripts
  2. MSK Core
  3. Functions
  4. Server
  5. UI

Input

Last updated 6 months ago

MSK.Input.Open

Opens an Input Window.

Preview

Parameters playerId - number - Players server id header - string - Header Text placeholder - string - Placeholder text field - boolean - Small Input or Big Input

Returns input - string/number - Input

Asynchronous

-- Small Input Window
MSK.Input.Open(playerId, 'This is a Header', 'This is a Placeholder', function(input)
    if not input then return end
    print(input)
end)

-- Big Input Window
MSK.Input.Open(playerId, 'This is a Header', 'This is a Placeholder', true, function(input)
    if not input then return end
    print(input)
end)

-- As an Export:
exports.msk_core:Input(playerId, header, placeholder, field, function(input)
    if not input then return end
    print(input)
end

Synchronous

-- Small Input Window
local input = MSK.Input.Open(playerId, 'This is a Header', 'This is a Placeholder')
print(input)

-- Big Input Window
local input = MSK.Input.Open(playerId, 'This is a Header', 'This is a Placeholder', true)
print(input)

-- As an Export:
local input = exports.msk_core:Input(playerId, header, placeholder, field)

MSK.Input.Close

Closes the current Input Window.

Parameters playerId - number - Players server id

MSK.Input.Close(playerId)

-- As an Export:
exports.msk_core:CloseInput(playerId)