Para todas las preguntas de soporte, pregunte en nuestro chat de soporte de Discord. No cree problemas en GitHub si necesita ayuda. Los problemas son solo para informar errores y nuevas funciones.
Inicie un juego de Number Maze con una devolución de llamada para el éxito o el fracaso.
exports [ ' ps-ui ' ]: Maze ( function ( success )
if success then
print ( " success " )
else
print ( " fail " )
end
end , timeLimit ) -- Hack Time Limit in seconds 
Muestra una notificación con texto, tipo y duración.
exports [ ' ps-ui ' ]: Notify ( ' Your message ' , ' notification-type ' , duration )
Inicie un juego circular con una devolución de llamada para el éxito o el fracaso.
exports [ ' ps-ui ' ]: Circle ( function ( success )
if success then
print ( " success " )
else
print ( " fail " )
end
end , numCircles , time ) -- Number of Circles, Time in milliseconds 
Inicie un juego Scrambler con una devolución de llamada para indicar el éxito o el fracaso.
exports [ ' ps-ui ' ]: Scrambler ( function ( success )
if success then
print ( " success " )
else
print ( " fail " )
end
end , type , time , mirrored ) -- Type options: alphabet, numeric, alphanumeric, greek, braille, runes; Time in seconds; Mirrored options: 0, 1, 2 
Inicie un juego VAR Hack con una devolución de llamada para el éxito o el fracaso.
exports [ ' ps-ui ' ]: VarHack ( function ( success )
if success then
print ( " success " )
else
print ( " fail " )
end
end , numBlocks , time ) -- Number of Blocks, Time in seconds 
Inicie un juego de Thermite con una devolución de llamada para el éxito o el fracaso.
exports [ ' ps-ui ' ]: Thermite ( function ( success )
if success then
print ( " success " )
else
print ( " fail " )
end
end , time , gridSize , incorrectBlocks ) -- Time in seconds, Grid Size (5-10), Incorrect Blocks 
Crea un menú con submenús y eventos.
exports [ ' ps-ui ' ]: CreateMenu ({
{
id = " examplemenu " , -- has to be unique
header = " Menu Header " ,
text = " Menu Text " ,
icon = " icon-class " ,
color = " color " ,
event = " event-name " ,
args = { arg1 , arg2 },
server = false ,
subMenu = {
{
id = " examplesubmenu " , -- has to be unique
header = ' Submenu Header ' ,
icon = ' icon-class ' ,
color = ' color ' ,
event = " event-name " ,
args = { arg1 , arg2 },
},
},
},
}) Ocultar el menú que se muestra actualmente
exports [ ' ps-ui ' ]: HideMenu ()
exports [ ' ps-ui ' ]: StatusShow ( " Title " , " Description " , " icon " ,
{
{ key = " Key1 " , value = " Value1 " },
{ key = " Key2 " , value = " Value2 " },
{ key = " Key3 " , value = " Value3 " }
})
Mostrar texto con un color específico
exports [ ' ps-ui ' ]: DisplayText ( " Your text " , " color " )Ocultar el texto mostrado actualmente
exports [ ' ps-ui ' ]: HideText ()
Muestre un formulario de entrada e imprima los valores de entrada.
local input = exports [ ' ps-ui ' ]: Input ({
{
id = ' 1 ' ,
label = ' Label ' ,
type = " input-type " ,
icon = " icon-class "
},
-- Add more inputs as needed
})
for k , v in pairs ( input ) do
print ( k , v . id , v . value )
end 
Muestra una imagen de una URL.
exports [ ' ps-ui ' ]: ShowImage ( " imageURL " )