Garry's Mod

Garry's Mod

PointShop 1 BodyGroup Selector
16 Comments
PsychicalGamer 15 Jun @ 5:46am 
body groups doesnt work anymore :<
kapper 6 Mar, 2022 @ 5:35am 
@Fafy, yeah I see what you mean. Just seems odd that I can pick different "Skins" in the "Bodygroups" tab, when using Gmods normal Model Selector, but when printing it in console, it shows up with only Ties and Body. Huge thanks though for taking the time to try and help. Huge thumbs up for the addon.
Fafy  [author] 3 Mar, 2022 @ 11:28am 
@Kasper it looks like some models from that pack don't have the body bodygroup at all while some have them as ID 1 and others as ID 2. Try checking with lua_run PrintTable(Entity(1):GetBodyGroups()) in console (make sure you have the right model equipped)
kapper 3 Mar, 2022 @ 6:58am 
@Fafy I am trying to do it for "Suits and robbers addon" (https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=412149725) . However, for most of them, you can only edit 1-2 of the bodygroups, usually being the "Tie" or "Skin", but the "Body" does't show up with an ID. Would really appreciate the help :lunar2019grinningpig:
Fafy  [author] 2 Mar, 2022 @ 3:08pm 
@Kasper All bodygroups should have an ID, if you can't find it let me know what the model is and I'll see if I can find it
kapper 2 Mar, 2022 @ 2:12pm 
What do you do when the ID is nothing for one of the categories? I have [1] and [2], but I can't get the one without any ID
⊰{TFA}⊱KZ Mantiss 17 Jan, 2021 @ 2:00pm 
Okay, I understand. Thank you, that helps a fair bit. :special:
Fafy  [author] 17 Jan, 2021 @ 10:31am 
You can enforce a skin by adding this after the SetModel line

ply:SetSkin(0)

where 0 is the skin you want to enforce
⊰{TFA}⊱KZ Mantiss 17 Jan, 2021 @ 2:08am 
Hi Fafy, I have a question, for particularly server-side setup. Is it possible for your addon to change the bodygroups of a playermodel, and the then post *that* version of the model on pointshop? i.e, {model} has 2 skins, and skin 1 is model default, but I want skin 2 to be in the pointshop, and not the other. Is your addon capable of this, or is there one existing to your knowledge?
Fafy  [author] 10 Apr, 2020 @ 6:51pm 
Hey Nevel, you can do bind key ps_bodygroupselector_preview where key is the button you want
Nevel 10 Apr, 2020 @ 12:47pm 
Hi Fafy, do you know how to make "ps_bodygroupselector_preview" appear from the press of a button for the players ? :lunar2019wavingpig:
Fafy  [author] 18 Mar, 2020 @ 6:52pm 
Maybe you can check the example on the GitHub repository
Sexy Ace™ 18 Mar, 2020 @ 12:03pm 
i followed the instructions but the model isn't changing
ˢᵃⁿᵈ 砂 26 Oct, 2019 @ 8:28am 
Much easier to understand now and it's working perfectly! Thank you. 10/10 :heart_me:
Fafy  [author] 25 Oct, 2019 @ 1:58pm 
Done. Thanks for the suggestion!
ˢᵃⁿᵈ 砂 24 Oct, 2019 @ 1:09pm 
Had to remove it. I got errors and it even messed with my gamemode. Maybe I did something wrong? Who knows. I suggest adding a player model file as an example in your github version.