Skip to content

Commit

Permalink
Feat: Add statebag for instances
Browse files Browse the repository at this point in the history
  • Loading branch information
FjamZoo authored Jan 30, 2024
1 parent cdd1502 commit d7cc3b5
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 @@ -180,6 +180,7 @@ end
function QBCore.Functions.SetPlayerBucket(source, bucket)
if source and bucket then
local plicense = QBCore.Functions.GetIdentifier(source, 'license')
Player(source).state:set('instance', bucket, true)
SetPlayerRoutingBucket(source, bucket)
QBCore.Player_Buckets[plicense] = { id = source, bucket = bucket }
return true
Expand Down

0 comments on commit d7cc3b5

Please sign in to comment.