From 5d299c8a58b769a7c36d3860f87630687f91b394 Mon Sep 17 00:00:00 2001 From: c <58707473+jnccloud@users.noreply.github.com> Date: Sat, 2 Dec 2023 18:50:56 -0500 Subject: [PATCH] fix: oal/routing bucket issue for more info see https://github.com/Qbox-project/qbx_houserobbery/pull/7 --- server/main.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/main.lua b/server/main.lua index d2e9dfb..e16d9b3 100644 --- a/server/main.lua +++ b/server/main.lua @@ -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 = { @@ -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) @@ -246,4 +246,4 @@ CreateThread(function() sounds[#sounds + 1] = filename:match('(.+)%..+$') end end -end) \ No newline at end of file +end)