From 0c55486312e61fb717429ecf029c95cec7d0081c Mon Sep 17 00:00:00 2001 From: Mitroxs <59477429+Mitroxs@users.noreply.github.com> Date: Fri, 3 Dec 2021 18:18:14 +0100 Subject: [PATCH] Update server/functions.lua Co-authored-by: Taso --- server/functions.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/server/functions.lua b/server/functions.lua index b284192..60f5c18 100644 --- a/server/functions.lua +++ b/server/functions.lua @@ -169,11 +169,7 @@ end --- Will return true / false wheter the mentioned player id is present in the bucket provided function QBCore.Functions.IsPlayerInBucket(player_source --[[int]] ,bucket --[[int]]) local curr_player_bucket = GetPlayerRoutingBucket(player_source) - if curr_player_bucket == bucket then - return true - else - return false - end + return curr_player_bucket == bucket end -- Paychecks (standalone - don't touch)