Feat: Add statebag for instances

This commit is contained in:
FjamZoo
2024-01-30 04:41:07 +01:00
committed by GitHub
parent cdd1502f01
commit d7cc3b5884
+1
View File
@@ -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