mirror of
https://github.com/CapsAdmin/pac3.git
synced 2025-03-04 03:03:01 -05:00
Added ability for PacSetKeyValue to function on world owner groups
This commit is contained in:
parent
44a8e67222
commit
01a770d94f
@ -8,6 +8,8 @@ end)
|
|||||||
|
|
||||||
local function SetKeyValue(ply, ent, unique_id, key, val)
|
local function SetKeyValue(ply, ent, unique_id, key, val)
|
||||||
local set = "Set" .. key
|
local set = "Set" .. key
|
||||||
|
|
||||||
|
if ent == game.GetWorld() then ent = pac.WorldEntity end
|
||||||
|
|
||||||
local part = pac.GetPartFromUniqueID(pac.Hash(ply), unique_id)
|
local part = pac.GetPartFromUniqueID(pac.Hash(ply), unique_id)
|
||||||
if not IsValid( part ) then return end
|
if not IsValid( part ) then return end
|
||||||
|
Loading…
Reference in New Issue
Block a user