DocsBoss Menu

Exports and events

Client exports and server events for other resources.

Not released yet. These pages are written from the code of manniche_bossmenu and can change before the release.

Client exports

ExportReturnsWhat it does
exports.manniche_bossmenu:open()nothingOpens the tablet. Same checks as the command, including the server access check.
exports.manniche_bossmenu:isOpen()booleantrue while the tablet is open.

Server events

Listen to these with AddEventHandler in your own server script.

EventArgumentsWhen
manniche_bossmenu:serverLogcategory, job, messageFor every logged action, when Config.Economy.serverLogEvent is true.
manniche_bossmenu:trainingChangedidentifier, job, training, enabledAfter a training is granted or removed.
AddEventHandler('manniche_bossmenu:trainingChanged', function(identifier, job, training, enabled)
    print(identifier, job, training, enabled)
end)

Client events

These client events are triggered locally when the tablet opens and closes. They drive the tablet prop and animation.

  • manniche_bossmenu:client:openAnim
  • manniche_bossmenu:client:closeAnim