From a3a763c86a5d84504486ab478b663e4df404109b Mon Sep 17 00:00:00 2001 From: Mitroxs <59477429+Mitroxs@users.noreply.github.com> Date: Fri, 3 Dec 2021 19:06:40 +0100 Subject: [PATCH] Get function for the bucket objects --- server/functions.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/functions.lua b/server/functions.lua index 2c86364..b5796de 100644 --- a/server/functions.lua +++ b/server/functions.lua @@ -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