Exports
Exports (client):
-- NOTIFY EXPORT --
@title = Title Message : string
@message = Subtitle Message : string
@sort = notify-sort : "info", "success", "warn", "error" : string
@time = showing-time in msec : 1000 = 1sec : number
exports['Moon_Hud']:notify(title, message, sort, time)-- ANNOUNCE EXPORT --
@title = Announce-Title : string
@message = Subtitle Message : string
@time = showing-time in msec : 1000 = 1sec : number
exports['Moon_Hud']:announce(title, message, time)-- PRESS E EXPORT --
@title = Press-E-Title : string
@letter = Press-E-Letter : string
You can call the pressE with max wait time of ~200 msec.
exports['Moon_Hud']:pressE(title, letter)-- OPEN REQUEST EXPORT --
@title = Request-Title : string
@message = Request-Message : string
@time = wait time until request automatic closed (msec) : number : 1000 = 1sec
@callback = callback function : function
if the player accept the request, the callback function will be called with true, else with false.
-- SHOW HUD EXPORT --
-- HIDE HUD EXPORT --
Use these exports to show or hide the HUD based on the function called. Use showHud to display the HUD and hideHud to hide it.
-- Show no voice chat connected screen --
@show = show or hide : boolean
Exports (server):
-- ANNOUNCE EXPORT --
@title = Announce-Title : string
@message = Subtitle Message : string
@time = showing-time in msec : 1000 = 1sec : number
-- NOTIFY EXPORT --
@id = Player ID
@title = Title Message : string
@message = Subtitle Message : string
@sort = notify-sort : "info", "success", "warn", "error" : string
@time = showing-time in msec : 1000 = 1sec : number
Events (client):
-- NOTIFY EVENT --
@title = Title Message : string
@message = Subtitle Message : string
@sort = notify-sort : "info", "success", "warn", "error" : string
@time = showing-time in msec : 1000 = 1sec : number
Last updated