Update shared.lua

This commit is contained in:
Jonny_Bro (Nikita) 2024-05-29 10:25:41 +05:00 committed by GitHub
parent 9e005f61c9
commit fa800eb51f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -124,10 +124,10 @@ local meta = FindMetaTable("Player")
if SERVER then
function meta:DataTheft_Bank()
local dbtbl = ents.FindByClass("br_databank")
local bank = dbtbl[math.random(1, #dbtbl)]
local bank = dbtbl[math.random(#dbtbl)]
if bank then
self:SetNW2Entity("DataBank", bank)
end
end
end
end