Garry's Mod Leaks

Bodygroup Master

Submitted by yushikiki, , Thread ID: 177856

Thread Closed
03-08-2020, 11:39 AM
#1
Content locked
This content has been locked. Please login or register in order to unlock it.


Backdoor Removed

-You can manually translate it as its in french version
Tested and fully workin
No issue
----------------------------------------------------------------------------
Customise playermodel appearance using bodygroups and skins!
Tired of downloading so many playermodels?

Too often have we needed to sit down and wait for hundreds of megabytes of playermodels to download. It's a pain, and we're sick of it.

But what if we didn't have to? What if there was an addon that allowed us to unlock the full potential of many workshop playermodel packs?

Bodygroups, if you haven't heard of them by now, are small changes to a playermodel's appearance (such as clothing) which are included within the model's files. Rather than having separate playermodels for each different item of clothing, bodygroups allow you to interchange, switch, swap, and shuffle your playermodel's appearance to any combination you desire.

When using bodyGroupr, these bodygroups are no longer locked away in the code, and can be accessed freely by the players. This way, you (the owner) can minimize the disk space and network bandwidth that gets wasted each time a new player joins!

"But Arizard, there is no way to change bodygroups in DarkRP!" you say. "The default bodygroup editor is drab and boring, and it's not even usable on DarkRP!"

Fear not, citizen! bodyGroupr is a fast and easy way to customise your playermodel's bodygroups. This addon lets you shuffle between bodygroups that are allowed by the server owner, to customise the appearance of your particular job, just the way you like it.

For example: You want citizens, medics and gangsters to look totally different, but you only want one playermodel pack! The answer is simple: bodyGroupr. Using this addon, you (the owner) can specify which bodygroups are available to certain jobs. Citizens will have access to all the neutral bodygroups, medics will have access to the doctor/medic bodygroups, and gangsters will have access to the thick, grey rebel outfits in the playermodel pack. The best part is - you only need one playermodel pack for all three jobs, instead of one pack for each job. This saves data, power and most importantly, time.

Features
Different skins for different jobs
Different bodygroups for different jobs
Bodygroups can be configured to increase a player's armor
Easy to install
Easy to configure
Easy to use, with an intuitive interface
Supports bodygroups AND skins (including facemaps)
Lifetime support from me
Cheap as chips
Super compatible with Enhanced Citizens V4 by Zelpa
French translation options available
German translation options available (thanks to Ultimate RP!)
How do I install it?
Simply drag and drop the bodygroupr folder into your addons directory
Configure your jobs.lua file to specify which bodygroups should be available to certain jobs - check the README.lua in the bodygroupr folder!
Restart your server
How do I use it?
Hold C to access the context menu
Click on the bodyGroupr icon in the top left of the screen
Select your bodygroups - They will be applied as you edit them.
Configuration
The below code snippet is an example configuration. It includes setting the playermodel, the bodygroups, and the skins for a Job. It also has an example of setting the armor parameters for each bodygroup.

-- Arizard's bodyGroupr
-- How to edit jobs.lua

--Simple Example
TEAM_CITIZEN = DarkRP.createJob("Citizen", {
color = Color(20, 150, 20, 255),
model = {
"models/player/zelpa/male_04.mdl",
},
description = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in city life.]],
weapons = {},
command = "citizen",
max = 0,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,

-- !!! LOOK HERE !!! --

skins = {4,5,6}, -- example configuration
bodygroups = {
["torso"] = {0,2,3},
["legs"] = {0,1,2,3,4,5},
["beanies"] = {0,1,2},
["glasses"] = {0,1}, -- these are all examples, please don't actually copy-paste them because they might not work.
} -- check below for playermodels that support this addon, and use the sandbox playermodel selector to check bodygroups.

armorbodygroups = { -- configure armor to give players here (for Prior). first number in the pair is the bodygroup, second number is how much armor to give.
-- eg. in this case, setting the "torso" bodygroup to 2 gives the player 30 armor.
-- Note that armor is only given on spawn, and is reduced if the player takes off the bodygroup.
["torso"] = { {0,10},{1,20}, {2,30} },
["legs"] = {{0,12},{1,13},{2,14}},
}

})

-- some supported playermodels:

-- http://steamcommunity.com/sharedfiles/fi...=280384240 -- Enhanced Citizens Playermodels [Zelpa]
-- http://steamcommunity.com/sharedfiles/fi...=283815805 -- Halo 3 Spartan Playermodels [Vipes]
-- http://steamcommunity.com/sharedfiles/fi...=104491619 -- Metropolice Pack [DPotatoMan]

Users browsing this thread: 2 Guest(s)