• How to add body groups & where to add them.
    4 replies, posted
Hi! So I have been trying to add bodygroups to my jobs and nothing I try seems to be working. Here is my original job TEAM_VADERSFISTTROOP = DarkRP.createJob("Vader's Fist Trooper", { color = Color( 0, 0, 204, 255 ), model = "models/player/hydro/tk_commander/tk_commander.mdl", description = [[Darth Vader's most reliable regiment.]], weapons = {"climb_swep2", "weapon_holster", "salute", "weapon_752bf3_e11", "weapon_752bf3_dh17", "weapon_752bf3_rt97c"}, command = "vftroop", max = 6, salary = 400, admin = 0, vote = false,     category = "Vader's Fist",     sortOrder = 4, hasLicense = false, PlayerSpawn = function(ply)         ply:SetMaxHealth(200)         ply:SetHealth(200)     end        }) The player model I'm trying to use has 7 different bodygroup settings, I'm trying to get the one without the pauldron the 7th one in the context menu. I would love to know the code for the bodygroup and where to insert it and how to get my desired bodygroup. (Which "number bodygroup" to put in and what "number value" should be after each "number bodygroup") An example of the code I've been trying to work is below: PlayerSpawn = function(ply) return ply:SetBodygroup(1,1) end
2 arguments are for models with multiple bodygroups, try one ply:SetBodygroup(7)
thanks a bunch man, highly appreciated.
Sorry, Entity says that args starts from 0, not 1. Just change (1, 7) to (0, 6)
So, there are no more LUA errors, thank you. But is there any way to know what I am switching my bodygroup to? I was playing around and manage to switch it but it was the wrong one, changed it again and i'm back to where I started. Is there any way of knowing what numbers to put in to switch to my desired body group?
Sorry, you need to Log In to post a reply to this thread.