Notify
Show notify.
exports.nosql_ui:Notify(data)Parameters
- notificationType:
string'info''success''error''warning'
- title:
string - message:
string - time:
number
Example
exports.nosql_ui:Notify({
notificationType = 'info',
title = 'Title',
message = 'Example',
time = 5000
})ProgressBar
Show progressbar.
exports.nosql_ui:ProgressBar(data)Parameters
- message:
string - time:
number - freezePlayer:
boolean - animation:
object{type = string, dict = string, type = string} - method:
function()
Example
exports.nosql_ui:ProgressBar({
message = 'Example',
time = 10000,
freezePlayer = true,
animation ={
type = "anim",
dict = "mini@prostitutes@sexlow_veh",
lib ="low_car_sex_to_prop_p2_player"
},
onFinish = function()
print("finish")
end
})Menu
Show menu.
exports.nosql_ui:Menu(data)Close menu.
exports.nosql_ui:CloseMenu()Parameters
- title:
string - subtitle:
string - time:
number - items:
object{icon = string, label = string, desc = string, callback = string }
Example
local menu = exports.nosql_ui:Menu({
title = 'TITLE',
subtitle = 'SUB TITLE',
items = {
{
icon = "π",
label = "Inventory",
desc = "Manage your items",
disabled = true,
callback = 'inventory'
},
{
icon = "π",
label = "Vehicles",
desc = "Vehicle management",
callback = 'vehicles'
},
{
icon = "βοΈ",
label = "Settings",
desc = "Configure the game",
callback = 'settings'
},
{
icon = "πΊοΈ",
label = "Map",
desc = "View the map",
callback = 'map'
}
}
})
print("Selected item from menu: "..menu)HelpText
Show HelpText.
exports.nosql_ui:showHelpText(data)Update HelpText.
exports.nosql_ui:updateHelpText(data)Hide HelpText
exports.nosql_ui:hideHelpText()Parameters
- text:
string - key:
string
Example
exports.nosql_ui:showHelpText({
text = "Open Inventory"
key = "E"
})
exports.nosql_ui:updateHelpText({
text = "Open Inventory"
key = "E"
})InfoBox
Show InfoBox.
exports.nosql_ui:showInfoBox(data)Hide InfoBox.
exports.nosql_ui:hideInfoBox(data)Logo
Show logo.
exports.nosql_ui:showLogo()Hide logo.
exports.nosql_ui:hideLogo()