Skip to content

Commit

Permalink
fix: oal/routing bucket issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jnccloud authored Dec 2, 2023
1 parent ad8abb7 commit 5d299c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ local sounds = {}
function CheckRoutingbucket(source, target)
local sourceBucket = GetPlayerRoutingBucket(source)
local targetBucket = GetPlayerRoutingBucket(target)
if sourceBucket ~= targetBucket then SetPlayerRoutingBucket(source, targetBucket) end
if sourceBucket ~= targetBucket then SetPlayerRoutingBucket(tonumber(source), targetBucket) end
end

local generalOptions = {
Expand Down Expand Up @@ -42,7 +42,7 @@ local generalOptions = {
SetPedIntoVehicle(GetPlayerPed(source), vehicle, seat)
end,
function(selectedPlayer, _, input)
SetPlayerRoutingBucket(selectedPlayer.id, input)
SetPlayerRoutingBucket(tonumber(selectedPlayer.id), input)
end,
}
RegisterNetEvent('qbx_admin:server:playerOptionsGeneral', function(selected, selectedPlayer, input)
Expand Down Expand Up @@ -246,4 +246,4 @@ CreateThread(function()
sounds[#sounds + 1] = filename:match('(.+)%..+$')
end
end
end)
end)

0 comments on commit 5d299c8

Please sign in to comment.