Get function for the bucket objects

This commit is contained in:
Mitroxs
2021-12-03 19:06:40 +01:00
parent 6d553436ec
commit a3a763c86a
+7
View File
@@ -111,6 +111,13 @@ end
_G.Player_Buckets = {} -- Bucket array containing all players that have been set to a different bucket
_G.Entity_Buckets = {} -- Bucket array containing all entities that have been set to a different bucket
--- Returns the objects related to buckets, first returned value is the player buckets , second one is entity buckets
function QBCore.Functions.GetBucketObjects()
return _G.Player_Buckets, _G.Entity_Buckets
end
--- Will set the provided player id / source into the provided bucket id
function QBCore.Functions.SetPlayerBucket(player_source --[[int]],bucket --[[int]])
if player_source and bucket then