Skip to content

correct typo for qbx_core #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/event.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ AddEventHandler('onResourceStart', function(resource)
if GetCurrentResourceName() == resource then
if Shared.Core == 'qb' and LocalPlayer.state.isLoggedIn then
Radio:QBInit()
elseif Shared.Core == 'qbox' and LocalPlayer.state.isLoggedIn then
elseif Shared.Core == 'qbx' and LocalPlayer.state.isLoggedIn then
Radio:QboxInit()
elseif Shared.Core == 'esx' and ESX.IsPlayerLoaded() then
Radio:ESXInit()
Expand Down
2 changes: 1 addition & 1 deletion client/interface.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ RegisterNetEvent('mm_radio:client:removedata', function()
}
if Shared.Core == 'qb' and LocalPlayer.state.isLoggedIn then
Radio:QBInit()
elseif Shared.Core == 'qbox' and LocalPlayer.state.isLoggedIn then
elseif Shared.Core == 'qbx' and LocalPlayer.state.isLoggedIn then
Radio:QboxInit()
elseif Shared.Core == 'esx' and ESX.IsPlayerLoaded() then
Radio:ESXInit()
Expand Down
4 changes: 2 additions & 2 deletions server/bridge.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if Shared.Core == "qb" then
QBCore.Functions.CreateUseableItem("radio", function(source)
TriggerClientEvent('mm_radio:client:use', source)
end)
elseif Shared.Core == 'qbox' then
elseif Shared.Core == 'qbx' then
if not Shared.Ready then return end

exports.qbx_core:CreateUseableItem("radio", function(source, item)
Expand All @@ -32,7 +32,7 @@ function GetUserName(source)
if Player then
return Player.PlayerData.charinfo.firstname .. ' ' .. Player.PlayerData.charinfo.lastname
end
elseif Shared.Core == 'qbox' then
elseif Shared.Core == 'qbx' then
local Player = exports.qbx_core:GetPlayer(source)
if Player then
return Player.PlayerData.charinfo.firstname .. ' ' .. Player.PlayerData.charinfo.lastname
Expand Down
4 changes: 2 additions & 2 deletions shared/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Shared.UseCommand = false -- set to true to use command to open radio (item requ

if GetResourceState('qb-core') == 'started' then -- change your core script
Shared.Core = 'qb' -- dont touch this
elseif GetResourceState('qbox_core') == 'started' then -- change your core script
Shared.Core = 'qbox' -- dont touch this
elseif GetResourceState('qbx_core') == 'started' then -- change your core script
Shared.Core = 'qbx' -- dont touch this
elseif GetResourceState('es_extended') == 'started' then -- change your core script
Shared.Core = 'esx' -- dont touch this
else
Expand Down