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,7 +124,7 @@ local meta = FindMetaTable("Player")
if SERVER then if SERVER then
function meta:DataTheft_Bank() function meta:DataTheft_Bank()
local dbtbl = ents.FindByClass("br_databank") local dbtbl = ents.FindByClass("br_databank")
local bank = dbtbl[math.random(1, #dbtbl)] local bank = dbtbl[math.random(#dbtbl)]
if bank then if bank then
self:SetNW2Entity("DataBank", bank) self:SetNW2Entity("DataBank", bank)