Exports
With these exports, you will be able to manipulate the system from scripts external to it.
Client Exports
AddMessage
exports.origen_chat:addMessage(message)message:
tableargs:
tableorstringtitle?:
stringbarColor?:
stringor[number, number, number]type?:
string(error, warning, info, success, debug)timestap?:
stringicon?:
string
Example:
exports.origen_chat:addMessage({
args = {'Test message'},
barColor = '#00FF00',
type = 'info',
title = 'INFO',
timestamp = "13:00",
icon = 'lucide:info'
})AddSuggestion
exports.origen_chat:addSuggestion(name, help, params)name:
stringhelp:
stringparams:
tablename:
stringhelp:
stringdisasbled:
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)RemoveSuggestion
exports.origen_chat:removeSuggestion(name)name:
string
Example:
exports.origen_chat:removeSuggestion('test_command')Server Exports
AddMessage
target:
numbermessage:
tableargs:
tableorstringtitle?:
stringbarColor?:
stringor[number, number, number]type?:
string(error, warning, info, success, debug)timestap?:
stringicon?:
string
Example:
Last updated