Tutorials
How to fix blue chat background?
How to create a custom message with an export?
How to use chat notifications in other scripts?
1.
DO NOT DELETE THE SYSTEM_RESOURCES CHAT
Download chat file from the Installation Guide.
Add the following into server.cfg, make sure chat resource starts before fivecode_rpchat
ensure chat ensure fivecode_rpchat
If default chat box is still present do the following:
Go into server.cfg server file and change the following
original: set resources_useSystemChat true changed: set resources_useSystemChat false
2.
-- 1: Message: The text to display in the chat notification.
-- 3: Everyone: If true, the message will be send to all players in the server.
-- 2: Args: A table containing display settings such as label, icon, and colors.
exports['fivecode_rpchat']:Message(message, everyone, args)
-- Example:
exports['fivecode_rpchat']:Message('Hello World.', false, {
Label = 'Test Label:',
Icon = 'fas fa-check',
Color = {
Label = '255, 255, 255',
Text = '255, 255, 255',
TextStyleNormal = '75, 206, 18',
Background = '75, 2, 18, 0.9',
},
})-- 1: Source: Player source.
-- 2: Message: The text to display in the chat notification.
-- 3: Everyone: If true, the message will be send to all players in the server.
-- 4: Args: A table containing display settings such as label, icon, and colors.
exports['fivecode_rpchat']:Message(source, message, everyone, args)
-- Example:
exports['fivecode_rpchat']:Message(source, 'Hello World.', false, {
Label = 'Test Label:',
Icon = 'fas fa-check',
Color = {
Label = '255, 255, 255',
Text = '255, 255, 255',
TextStyleNormal = '75, 206, 18',
Background = '75, 2, 18, 0.9',
},
})3.
-- 1: Notification Type - (success, info, error)
-- 2: Notification message
-- 3: If true everyone in the server will see this message.
exports.fivecode_rpchat:Notify(type, message, everyone)-- 1: Player source
-- 2: Notification Type - (success, info, error)
-- 3: Notification message
-- 4: If true everyone in the server will see this message.
exports.fivecode_rpchat:Notify(source, type, message, everyone)Success Notification






Error Notification



Last updated
Was this helpful?