Skip to content

Commit 4d99c5c

Browse files
authored
Merge pull request #12 from ARSSANTO/main
correct typo for qbx_core
2 parents 94fbff0 + c413e0a commit 4d99c5c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

client/event.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ AddEventHandler('onResourceStart', function(resource)
99
if GetCurrentResourceName() == resource then
1010
if Shared.Core == 'qb' and LocalPlayer.state.isLoggedIn then
1111
Radio:QBInit()
12-
elseif Shared.Core == 'qbox' and LocalPlayer.state.isLoggedIn then
12+
elseif Shared.Core == 'qbx' and LocalPlayer.state.isLoggedIn then
1313
Radio:QboxInit()
1414
elseif Shared.Core == 'esx' and ESX.IsPlayerLoaded() then
1515
Radio:ESXInit()

client/interface.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ RegisterNetEvent('mm_radio:client:removedata', function()
6161
}
6262
if Shared.Core == 'qb' and LocalPlayer.state.isLoggedIn then
6363
Radio:QBInit()
64-
elseif Shared.Core == 'qbox' and LocalPlayer.state.isLoggedIn then
64+
elseif Shared.Core == 'qbx' and LocalPlayer.state.isLoggedIn then
6565
Radio:QboxInit()
6666
elseif Shared.Core == 'esx' and ESX.IsPlayerLoaded() then
6767
Radio:ESXInit()

server/bridge.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if Shared.Core == "qb" then
1010
QBCore.Functions.CreateUseableItem("radio", function(source)
1111
TriggerClientEvent('mm_radio:client:use', source)
1212
end)
13-
elseif Shared.Core == 'qbox' then
13+
elseif Shared.Core == 'qbx' then
1414
if not Shared.Ready then return end
1515

1616
exports.qbx_core:CreateUseableItem("radio", function(source, item)
@@ -32,7 +32,7 @@ function GetUserName(source)
3232
if Player then
3333
return Player.PlayerData.charinfo.firstname .. ' ' .. Player.PlayerData.charinfo.lastname
3434
end
35-
elseif Shared.Core == 'qbox' then
35+
elseif Shared.Core == 'qbx' then
3636
local Player = exports.qbx_core:GetPlayer(source)
3737
if Player then
3838
return Player.PlayerData.charinfo.firstname .. ' ' .. Player.PlayerData.charinfo.lastname

shared/init.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Shared.UseCommand = false -- set to true to use command to open radio (item requ
55

66
if GetResourceState('qb-core') == 'started' then -- change your core script
77
Shared.Core = 'qb' -- dont touch this
8-
elseif GetResourceState('qbox_core') == 'started' then -- change your core script
9-
Shared.Core = 'qbox' -- dont touch this
8+
elseif GetResourceState('qbx_core') == 'started' then -- change your core script
9+
Shared.Core = 'qbx' -- dont touch this
1010
elseif GetResourceState('es_extended') == 'started' then -- change your core script
1111
Shared.Core = 'esx' -- dont touch this
1212
else

0 commit comments

Comments
 (0)