📥Exports

Configuration guide of Notify Pack System.

Client Exports


chevron-rightNotifyhashtag
exports['stg-hud']:Notify({ type = 'success', message = 'Hello!', title = 'Title', duration = 3000 })

Displays a notification on screen. Types: success, error, info, warning.

chevron-rightAnnouncementhashtag
exports['stg-hud']:Announcement({ name = 'Admin', title = 'Server', message = 'Welcome!', duration = 5000 })

Shows a large announcement notification to the players.

chevron-rightHelpNotifyhashtag
exports['stg-hud']:HelpNotify('E', 'Open Trunk')

Displays a key hint notification on screen.

chevron-rightHideHelpNotify hashtag
exports['stg-hud']:HideHelpNotify()

Hides the currently active help notification.

chevron-rightstartProgresshashtag
exports['stg-hud']:startProgress(5000, 'Repairing...', {
    freeze = true,
    anim = {
        dict = 'mini@repair',
        lib = 'fixing_a_player'
    },
    prop = 'prop_tool_wrench',
    onFinish = function()
        -- on complete
    end,
    onCancel = function()
        -- on cancel
    end
})

Starts a progress bar with optional freeze, animation, prop, and callbacks.

chevron-rightcancelProgresshashtag

Cancels the currently active progress bar.

Server Exports


chevron-rightSendAnnouncementhashtag

Broadcasts an announcement to all players from server-side.

Last updated