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 [Release] Okokchat QBCore

Tago

Silver Elite
Joined
Nov 14, 2021
Messages
37
Reaction score
16
Points
166
Location
Czech
Hello, i try use a version for ESX, but when i try write something commands answered me this, can you help me please?
1650495066639.png
 

Samyr

Bronze Elite
Joined
Apr 20, 2022
Messages
10
Reaction score
2
Points
156
Location
FR
Hello, you have to replace the first line

QBCore = nil
by
local QBCore = exports['qb-core']:GetCoreObject()

and the lines
playerName = xPlayer.getName()
by
playerName = xPlayer.PlayerData.charinfo.firstname .. ' ' .. xPlayer.PlayerData.charinfo.lastname
 
Last edited:

fenixrp

Member
Joined
Jun 24, 2022
Messages
2
Reaction score
0
Points
146
Location
spain
Download link:


VT:



Converted by me Untested , report if any issue occurred here
I get this error when starting the server. How can I solve it? I'm starting in the world of programming
[ script:eek:kokChatV2] Error loading script server.lua in resource okokChatV2: citizen:/scripting/lua/scheduler.lua:867: No such export registerMessageHook in resource chat
 

rumnet

Member
Joined
Oct 26, 2021
Messages
1
Reaction score
0
Points
146
Location
Location
This script was ported incorrectly. Methods such as getName and getGroup are ESX, not QB.

The main problem with command.lua is the 2 methods relating to getting permissions (isAdmin and showOnlyForAdmins). these methods in ESX can use the xPlayer object itself to implement the functionality.

However, in QB , the permissions methods use the source itself. You can't get permissions for a player object. This means that a deeper rewrite needs to happen in order for the script to work correctly.

Its not as simple as "find replace" each ESX line with its QB equivalent. Wont work like that.
 

vSRX

Gold Elite
Joined
Aug 11, 2022
Messages
31
Reaction score
3,462
Points
296
Location
TR
The solution for this error is change the server.cfg order.
ensure chat needs to start after qb-core
 
Top