attach pac outfit on spawn

How would i make it so there is a default pac outfit attatched to a player on spawn?

ive looked and can only find pac.setupent which only allows me to attach it to 1 person

my error when i try to attach a pac outfit with a second player



[ERROR] addons/pac3/lua/pac3/core/client/integration_tools.lua:95: attempt to index local 'outfit' (a boolean value)
  1. AttachPACPart - addons/pac3/lua/pac3/core/client/integration_tools.lua:95
   2. func - gamemodes/testgm/gamemode/cl_init.lua:21
    3. unknown - lua/includes/extensions/net.lua:32


This might help you out

ive already looked at this and cant manage to figure it out

[editline]11th March 2016[/editline]

as stated previously if i do it like this players cannot see the pac outfit update on another player once changed and it brings up errors when i try to use this on different people

[lua]
pac.AddEntityClassListener(“entity_class”,pac.luadata.ReadFile(“outfitfilethatsontheserver.txt”))
[/lua]

This is going to be the simplest way.

My Code:
[lua]
concommand.Add(“PacSetup”, function(ply)
pac.SetupENT(ply)
end)
concommand.Add(“PacAdd”, function(ply)
ply:AttachPACPart(pac.luadata.ReadFile(“pac3/” … txt … “.txt”))
end)
concommand.Add(“PacRemove”, function(ply)
ply:RemovePACPart(pac.luadata.ReadFile(“pac3/testpac.txt”))
end)
[/lua]

[editline]11th March 2016[/editline]

im trying to attach the pac outfit to a player

[editline]11th March 2016[/editline]

i cant find any documentation anywhere about attaching pac outfits to players through lua