30 lines
1.1 KiB
Markdown
30 lines
1.1 KiB
Markdown
Hi, thank you for buying my script, I'm very grateful!
|
|
|
|
If you need help contact me on discord: okok#3488
|
|
Discord server: https://discord.gg/FauTgGRUku
|
|
|
|
1. Disable the chat resource you're using at the moment
|
|
|
|
2. How to change the chat to the right side
|
|
Navigate to the styles.css file and on the line 22 change 'left: 40px;' to 'right: 40px;' and then on the line 42 do the same thing
|
|
|
|
3. How to add the system messages to QBCore
|
|
Navigate to qb-core/server/commands.lua and search for the following code (for example):
|
|
|
|
TriggerClientEvent('QBCore:Notify', source, "Incorrect Format", "error")
|
|
|
|
And replace it with the following:
|
|
|
|
AddEventHandler('chatMessage', function(playerId, author, message)
|
|
local time = os.date('%H:%M')
|
|
|
|
if message:sub(1, 1) == '/' and playerId > 0 then
|
|
CancelEvent()
|
|
|
|
TriggerClientEvent('chat:addMessage', playerId, {
|
|
template = '<div class="chat-message system"><i class="fas fa-cog"></i> <b><span style="color: #df7b00">SYSTEM</span> <span style="font-size: 14px; color: #e1e1e1;">{0}</span></b><div style="margin-top: 5px; font-weight: 300;">Incorrect Format</div></div>',
|
|
args = { time }
|
|
})
|
|
end
|
|
end)
|