Exports

With these exports, you will be able to manipulate the system from scripts external to it.

Client Exports

chevron-rightAddMessagehashtag
exports.origen_chat:addMessage(message)
  • message: table

    • args: table or string

    • title?: string

    • barColor?: string or [number, number, number]

    • type?: string (error, warning, info, success, debug)

    • timestap?: string

    • icon?: string

Example:

exports.origen_chat:addMessage({
    args = {'Test message'},
    barColor = '#00FF00',
    type = 'info',
    title = 'INFO',
    timestamp = "13:00",
    icon = 'lucide:info'
})
chevron-rightAddSuggestionhashtag
exports.origen_chat:addSuggestion(name, help, params)
  • name: string

  • help: string

  • params: table

    • name: string

    • help: string

    • disasbled: boolean

Example:

exports.origen_chat:addSuggestion('test_command', 'Test description', {
    {
        name = 'player',
        help = 'The player to greet',
        disabled = false
    },
    {
        name = 'message',
        help = 'The message to send',
        disabled = false
    }
}, false)
chevron-rightRemoveSuggestionhashtag
exports.origen_chat:removeSuggestion(name)
  • name: string

Example:

exports.origen_chat:removeSuggestion('test_command')
chevron-rightClearChathashtag
exports.origen_chat:clearChat()

Server Exports

chevron-rightAddMessagehashtag
  • target: number

  • message: table

    • args: table or string

    • title?: string

    • barColor?: string or [number, number, number]

    • type?: string (error, warning, info, success, debug)

    • timestap?: string

    • icon?: string

Example:

chevron-rightRegisterCommandhashtag
  • config: table

    • command: string

    • help: string

    • params?: table

      • name: string

      • type?: string (number, text, player, longText)

      • help: string

      • optional?: boolean

    • permissions?: table or string

  • callback: function

    • source: number

    • args: table

    • raw: string

Example:

chevron-rightResetChathashtag
  • playerId?: number

Example:

Last updated