Attaching Pac 3 Outfits to a Player through Lua

Can someone help me? I’m making a script to where I can attach an outfit that I made in Pac 3 and call it through LUA. This website helps however I couldn’t get the script to work for me https://github.com/CapsAdmin/pac3/wiki/PAC-in-gamemodes#using-pacaddentityclasslistener

Why do this when you can just set the group owner to the target object already?

Bcus I dont want to have to go into Pac 3 at all, I’m trying to do everything through LUA. Can I set the group owner to the target object through LUA?

[editline]11th August 2016[/editline]

Bcus I dont want to have to go into Pac 3 at all, I’m trying to do everything through LUA. Can I set the group owner to the target object through LUA?

Why don’t you just use



pac.SetupENT(ply)

ply:AttachPACPart(outfit_tbl)


or if you wanna add specific outfits you can try (not sure if it works)



pac.SetupENT(ply)
local outfit_tbl = pac.luadata.ReadFile("pac3/" .. outfit_name.. ".txt")
ply:AttachPACPart(outfit_tbl)


I get this error “attempt to call field ‘SetupENT’ (a nil value)”