Added ability for PacSetKeyValue to function on world owner groups

This commit is contained in:
iNVERTED 2023-11-25 15:18:24 -07:00
parent 44a8e67222
commit 01a770d94f

View File

@ -9,6 +9,8 @@ end)
local function SetKeyValue(ply, ent, unique_id, key, val)
local set = "Set" .. key
if ent == game.GetWorld() then ent = pac.WorldEntity end
local part = pac.GetPartFromUniqueID(pac.Hash(ply), unique_id)
if not IsValid( part ) then return end