I'm working on a DarkRP server currently, and a model that I want to use has a bunch CustomBodyGroup options to choose from.
That isn't my problem though, for a regular job it is easy to use this code;
PlayerSpawn = function(ply)
ply:SetBodygroup(0, 0)
end
But for the addon Another Meth Lab · gmodstore it has a option for where the player can equip a Hazmat suit with this code;
HR_CrystalMeth.Suit_Model = "models/bloocobalt/splinter cell/chemsuit_cod.mdl";
I'm trying to make it so the player model when you equip the suit will automatically spawn with the Gas mask and hood up, but for the default model it's just the head with the hood down. (not good for immersion when cooking meth)
https://steamcommunity.com/sharedfiles/filedetails/?id=243665786
Does anyone know a way to make it to copy the file or model location of it with the CustomBodyGroup's already selected?
I tried spawning the model in the server and using the C menu to select the body groups I wanted and blocking the model to get it to show up in the Console but it is the same model as default.
Can anyone help me?
Try to use this one in the jobs.lua
PlayerLoadout = function(ply) ply:SetBodygroup(0, 0) end,
Thanks for the reply, but I already stated I know how to do that. But I don't know how to add it to just a model
Sorry, you need to Log In to post a reply to this thread.