• Function that puts pac3 outfits onto players
    1 replies, posted
So I am slowly at my wits end All I am looking for is a function that call outfits onto players from pac3. This is what I currently have [CODE]local function manipulate(ply) if not (IsValid(ply)) then return end local outfit = { [1] = { ["children"] = { [1] = { ["children"] = { }, ["self"] = { ["ClassName"] = "bone", ["UniqueID"] = "3471372169", ["Size"] = 2, }, }, }, ["self"] = { ["EditorExpand"] = true, ["UniqueID"] = "1820197691", ["ClassName"] = "group", ["Name"] = "my outfit", ["Description"] = "add parts to me!", }, }, }, pac.SetupENT(ENT) -- ply:AttachPACPart(outfit) end hook.Add("ChangeBodyPac", "Bone Manipulation", function() for k, ply in pairs(player.GetAll()) do manipulate(ply) end end)[/CODE] the error I am getting is [CODE] [ERROR] lua/autorun/server/test.lua:27: attempt to call field 'SetupENT' (a nil value) manipulate - lua/autorun/server/test.lua:27 fn - lua/autorun/server/test.lua:33 Call - addons/ulib/lua/ulib/shared/hook.lua:110 unknown - lua_run:1[/CODE] I have a scriptfodder job in relationship to this; [url]https://scriptfodder.com/jobs/view/6360[/url] I am so desperate for help I am happy to pay anyone who can help me. [highlight](User was banned for this post ("" - NiandraLades))[/highlight]
Sorry, you need to Log In to post a reply to this thread.