Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.

Sure-Development/sure_headless-mailbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sure_headless-mailbox

Free Open Source, Headless Mailbox for everyone to customize your NUI

VERSION 1.0.1 DISCORD OUR DISCORD

Core Features

  • Mailbox with title, sender, sent_date, content, and items to receive
  • Use JSON as storage
  • Optimized net packet

Example

--- Table key
['mail_entry_1'] = {
    title = 'This is a title',
    sender = 'Sure Headless',
    sent_date = '8/26/2025',
    content = [[
        Content
        <ul>
            <li>1</li>
            <li>2</li>
            <li>3</li>
            <li>4</li>
        </ul>
    ]],
    receives = {
        { type = 'item', name = 'painkiller', count = 1 },
        { type = 'account', name = 'money', count = 500 }
    }
}

Usage

NUI

Reference type (typescript) from ./types/types.ts And you also need to add for visibility of NUI.

window.addEventListener('message', (event: MessageEvent<MessageEventsFromNUI>) => {
    const type = event.data.type

    if (type === 'update-mails') {
        const mails = event.data.mails
        ...
    } else if (type === 'add-mail-index-to-history') {
        const index = event.data.index
        ...
    } else if (type === 'update-history-indexes') {
        const indexes = event.data.indexes
        ...
    }
})

Client Commands

Debug All Data

sure_mb_debug

Claim Items

sure_mb_claim [index]

About

Free Open Source, Headless Mailbox for everyone to customize your NUI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published