Skip to content

Commit

Permalink
Fix(bucket): Set player instance state whenever you change bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
FjamZoo committed Jan 23, 2024
1 parent 6a86b96 commit 7bb366a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ exports('GetBucketObjects', GetBucketObjects)
function SetPlayerBucket(source, bucket)
if not (source or bucket) then return false end

Player(source).state:set('instance', bucket, true)
SetPlayerRoutingBucket(source --[[@as string]], bucket)
QBX.Player_Buckets[source] = bucket
return true
Expand Down

0 comments on commit 7bb366a

Please sign in to comment.