Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

Script okokChatV2 - QBCore and ESX

achraf001

Member
Joined
Feb 18, 2023
Messages
5
Reaction score
0
Points
156
Location
morocco
View attachment 6028

Hello, I bring you the okokChatV2 ESX version converted by me to QBCore (The file contains both versions).

Make sure to read the README.md ‼️


UPDATE: ATTENTION [Only QBCore Version] - I notice that the PM command doesn´t work, you need to edit line 824 in server.lua to xTargetName = getName(xTarget) to fix the problem.

UPDATE: 26/04/2022 - 12:20 [Only QBCore Version] - All the people who download the script after this hour will have all working properly.
If you got downloaded it before, make what is detailed above, in the first update and also change the lines 938, 1003 in server.lua to xTargetName = getName(xTarget)


Preview:

@Ares esx convert new download

Good contribution -> Script - okokChatV2 - QBCore and ESX
 

promiiss

Silver Elite
Joined
Mar 11, 2023
Messages
31
Reaction score
10
Points
156
Location
utrecht
UPDATE: ATTENTION [Only QBCore Version] - I notice that the PM command doesn´t work, you need to edit line 824 in server.lua to xTargetName = getName(xTarget) to fix the problem.

My okokchat server.lua has only 88 rows?
 

promiiss

Silver Elite
Joined
Mar 11, 2023
Messages
31
Reaction score
10
Points
156
Location
utrecht
Does its mean in have to do it for all 31 trigger events?



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>&nbsp;<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)
 

hekzpt

Bronze Elite
Joined
Apr 25, 2021
Messages
11
Reaction score
11
Points
156
Does its mean in have to do it for all 31 trigger events?



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>&nbsp;<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)
Where did you find the QBCore version, i downloaded with the new download but it's only ESX
 

flexsantiago

Gold Elite
Joined
Apr 29, 2021
Messages
103
Reaction score
69
Points
231
View attachment 6028

Hello, I bring you the okokChatV2 ESX version converted by me to QBCore (The file contains both versions).

Make sure to read the README.md ‼️


UPDATE: ATTENTION [Only QBCore Version] - I notice that the PM command doesn´t work, you need to edit line 824 in server.lua to xTargetName = getName(xTarget) to fix the problem.

UPDATE: 26/04/2022 - 12:20 [Only QBCore Version] - All the people who download the script after this hour will have all working properly.
If you got downloaded it before, make what is detailed above, in the first update and also change the lines 938, 1003 in server.lua to xTargetName = getName(xTarget)


Preview:

@Ares esx convert new download

Good contribution -> Script - okokChatV2 - QBCore and ESX
nice nice
 

anonhub

Member
Joined
Jun 2, 2022
Messages
7
Reaction score
1
Points
156
Location
India
View attachment 6028

Hello, I bring you the okokChatV2 ESX version converted by me to QBCore (The file contains both versions).

Make sure to read the README.md ‼️


UPDATE: ATTENTION [Only QBCore Version] - I notice that the PM command doesn´t work, you need to edit line 824 in server.lua to xTargetName = getName(xTarget) to fix the problem.

UPDATE: 26/04/2022 - 12:20 [Only QBCore Version] - All the people who download the script after this hour will have all working properly.
If you got downloaded it before, make what is detailed above, in the first update and also change the lines 938, 1003 in server.lua to xTargetName = getName(xTarget)


Preview:

@Ares esx convert new download

Good contribution -> Script - okokChatV2 - QBCore and ESX
Good
 

ReinTheReaper

Silver Elite
Joined
Mar 25, 2022
Messages
61
Reaction score
27
Points
166
Location
Denmark
View attachment 6028

Hello, I bring you the okokChatV2 ESX version converted by me to QBCore (The file contains both versions).

Make sure to read the README.md ‼️


UPDATE: ATTENTION [Only QBCore Version] - I notice that the PM command doesn´t work, you need to edit line 824 in server.lua to xTargetName = getName(xTarget) to fix the problem.

UPDATE: 26/04/2022 - 12:20 [Only QBCore Version] - All the people who download the script after this hour will have all working properly.
If you got downloaded it before, make what is detailed above, in the first update and also change the lines 938, 1003 in server.lua to xTargetName = getName(xTarget)


Preview:

@Ares esx convert new download

Good contribution -> Script - okokChatV2 - QBCore and ESX
fjd
 

walidxab

Member
Joined
Mar 9, 2023
Messages
4
Reaction score
5
Points
146
Location
Algeria
it did install for me qbcore but i dont have any notification for chat or something just commands
 

CeKurAy

Member
Joined
Oct 10, 2022
Messages
6
Reaction score
0
Points
146
Location
Romania
View attachment 6028

Hello, I bring you the okokChatV2 ESX version converted by me to QBCore (The file contains both versions).

Make sure to read the README.md ‼️


UPDATE: ATTENTION [Only QBCore Version] - I notice that the PM command doesn´t work, you need to edit line 824 in server.lua to xTargetName = getName(xTarget) to fix the problem.

UPDATE: 26/04/2022 - 12:20 [Only QBCore Version] - All the people who download the script after this hour will have all working properly.
If you got downloaded it before, make what is detailed above, in the first update and also change the lines 938, 1003 in server.lua to xTargetName = getName(xTarget)


Preview:

@Ares esx convert new download

Good contribution -> Script - okokChatV2 - QBCore and ESX
 
Top