Input
Last updated
Last updated
Opens an Input Window.
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
-- 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
-- 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)
Closes the current Input Window.
Parameters
playerId - number
- Players server id
MSK.Input.Close(playerId)
-- As an Export:
exports.msk_core:CloseInput(playerId)