π‘Installation
Explain how to install and configure the script:
Download & Extract
Add to Server Config
Configure
SCRIPT ERROR: @litz_radialmenu/client/bridge.lua:10: No such export getSharedObject in resource
QB-CORE
Open the file
client/bridge.lua
Remove every line that mentions
es_extended
(ESX)qbx_core
(QBOX)
Not sure what to delete?
Just select the entire file, press Delete, and paste the code below.
Save the file and restart (or reload) the resource.
function GetPlayerJob()
if exports and exports['qb-core'] and exports['qb-core'].GetCoreObject then
local QBCore = exports['qb-core']:GetCoreObject()
if QBCore and QBCore.Functions and QBCore.Functions.GetPlayerData then
local qData = QBCore.Functions.GetPlayerData()
if qData and qData.job then
return qData.job.name
end
end
end
return nil
end
QBOX
Open the file
client/bridge.lua
Remove every line that mentions
es_extended
(ESX)qb-core
Not sure what to delete?
Select the whole file, press Delete, and paste the code below.
Save the file and restart (or reload) the resource.
function GetPlayerJob()
if exports and exports['qbx_core'] then
local success, data = pcall(function()
return exports['qbx_core']:GetPlayerData()
end)
if success and data and data.job then
return data.job.name
end
end
return nil
end
ESX
Open the file
client/bridge.lua
Remove every line that mentions
qbx_core
(QBOX)qb-core
Not sure what to delete?
Select the entire file, press Delete, and paste the code below.
Save the file and restart (or reload) the resource.
function GetPlayerJob()
if exports and exports['es_extended'] and exports['es_extended'].getSharedObject then
local ESX = exports['es_extended']:getSharedObject()
if ESX and ESX.GetPlayerData then
local esxData = ESX.GetPlayerData()
if esxData and esxData.job then
return esxData.job.name
end
end
end
return nil
end
Last updated