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 CD DISPATCH - FULLY WORKING (15.03.2022)

Mole_Gaming

Member
Joined
Mar 26, 2022
Messages
5
Reaction score
1
Points
146
Location
United Kingdom
CD DISPATCH
it work, but you need to edit your config etc
how to I get this to work for qbcore? when I try to add the .sql file into the database, it fails to add it and says this...
1668284930120.png

I'm pretty sure this script is for ESX. If you have one, are you able to post the QB Core script
 

sungjihun

Member
Joined
Jan 10, 2022
Messages
6
Reaction score
1
Points
156
Location
south korea
CD DISPATCH
it work, but you need to edit your config etc
cd_dispatch
[ script:cd_dispatch] SCRIPT ERROR: @cd_dispatch/server/server.lua:6: attempt to index a nil value (global 'ESX')
[ script:cd_dispatch] > fn (@cd_dispatch/server/server.lua:6)
 

elteka

Member
Joined
Sep 20, 2022
Messages
11
Reaction score
1
Points
166
Location
Uruguay
This error comes from two factors:
In the file server.lua is this codes.

function GetRoleplayInfo(identifier)
local Result = MySQL.Sync.fetchAll('SELECT firstname, lastname, callsign FROM users WHERE identifier=@identifier', {['@identifier'] = identifier})
if Result ~= nil and Result[1] ~= nil then
if Result[1].callsign == nil then
Result[1].callsign = 'NULL'
end
if Result[1].firstname == nil then
Result[1].firstname = 'Unknown'
end
if Result[1].lastname == nil then
Result[1].lastname = 'Unknown'
end
return Result[1].firstname..' '..Result[1].lastname, Result[1].callsign
else
return 'Unknown Unknown', 'Unknown'
end
end

and
function GetSteamID(source)
if source and type(source) == 'number' then
return GetPlayerIdentifiers(source)[1]
else
print('dispatch - error 6587446')
end
end

But, if we change the last code for this we can see the names in the dispatch.
function GetSteamID(source)

if source and type(source) == 'number' then

xPlayer = ESX.GetPlayerFromId(source)
identifier = xPlayer.identifier

return identifier

else

print('dispatch - error 6587446')

end

end

And don't forget to comment AvengersWater in client.lua
 

elteka

Member
Joined
Sep 20, 2022
Messages
11
Reaction score
1
Points
166
Location
Uruguay
how to I get this to work for qbcore? when I try to add the .sql file into the database, it fails to add it and says this...View attachment 10110
I'm pretty sure this script is for ESX. If you have one, are you able to post the QB Core script
You must change the mysql tables to character since the users table is for esx
 

potrent

Member
Joined
Mar 29, 2021
Messages
3
Reaction score
0
Points
146
This error comes from two factors:
In the file server.lua is this codes.



and


But, if we change the last code for this we can see the names in the dispatch.


And don't forget to comment AvengersWater in client.lua
I got: @dispatch/server/server.lua:580: attempt to index a nil value (global 'xPlayer')
 
Top