examples
Example
local title = "Title"
local text = "The text"
local dict = "hud_textures"
local icon = "check"
local color = "COLOR_GREEN"
local duration = 5000
jo.notif.left(title, text, dict, icon, color, duration)
Example
local text = "Success notification"
local dict = "hud_textures"
local icon = "check"
local color = "COLOR_GREEN"
local duration = 5000
jo.notif.right(text, dict, icon, color, duration)
Example
return jo.notif.rightError("Error !")
Example
return jo.notif.rightSuccess("Success notification")
Example
local title = "Mission Started"
local subtitle = "You just start a great mission !"
local duration = 5000
jo.notif.simpleTop(title, subtitle, duration)
Example
local source = 1
local title = "Title"
local text = "The text"
local dict = "hud_textures"
local icon = "check"
local color = "COLOR_GREEN"
local duration = 5000
jo.notif.left(source, title, text, dict, icon, color, duration)
Example
local source = 1
local data = {
foo = "bar",
bar = "foo"
}
jo.notif.print(source, json.encode(data))
Example
local source = 1
local text = "Success notification"
local dict = "hud_textures"
local icon = "check"
local color = "COLOR_GREEN"
local duration = 5000
jo.notif.right(source, text, dict, icon, color, duration)
Example
local source = 1
jo.notif.rightError(source, "Error !")
Example
local source = 1
jo.notif.rightSuccess(source, "Success notification")
Example
local title = "Mission Started"
local subtitle = "You just start a great mission !"
local duration = 5000
local source = 1
jo.notif.simpleTop(source, title, subtitle, duration)