Garry's Mod
I can't change bodygroups on DarkRP server.
Submitted by egmatik, 15-02-2019, 08:59 PM, Thread ID: 121509
Thread Closed
15-02-2019, 08:59 PM
#1 Hey, so i have a problem with jobs and bodygroups on my server. The thing is that bodygroups doesn't change no matter what i do, so i there anyone who can help me? The example of job:
TEAM_GEN = DarkRP.createJob("Genera", { -- Name
color = Color(0, 0, 0, 255), -- Team color
model = "models/player/keller/starwars/commander_keller.mdl", -- Player model
description = [[Genera. Osoba dowodzca ca jednostk.]], -- Job description
weapons = {"bf2017_hunter", "bf2017_dc15aa", "realrbn_tazer", "m9k_orbital_strike", "sfw_thunderbolt", "zeus_thermaldet", "smooley_royalstaff", "m9k_fists", "tfa_bf2_dc17dual", "stunstick", "weapon_cuff_elastic"}, -- Additional weapons
command = "gen", -- Command to become the job
max = 1, -- Maximum amount of said job
salary = 0, -- Salary
admin = 0, -- Requires Admin? 1 for yes, 0 for no.
vote = false, -- Do they need to vote? true for yes, false for no.
sortOrder = 97;
category = "General",
PlayerSpawn = function(ply) ply:SetHealth(700) ply:SetArmor(255) ply:SetGravity(1) ply:SetBodygroup(1,0) ply:SetBodygroup(2,0) ply:SetBodygroup(3,0) ply:SetBodygroup(4,0) ply:SetBodygroup(5,0) ply:SetBodygroup(6,0) ply:SetBodygroup(7,0) ply:SetBodygroup(8,0) ply:SetBodygroup(9,0) ply:SetBodygroup(10,0) ply:SetBodygroup(11,0) ply:SetBodygroup(12,0) ply:SetBodygroup(13,0) ply:SetBodygroup(14,0) ply:SetBodygroup(15,0) ply:SetBodygroup(16,0) ply:SetBodygroup(17,0) ply:SetBodygroup(18,0) ply:SetBodygroup(19,0) ply:SetBodygroup(20,0) ply:SetBodygroup(21,0) ply:SetBodygroup(22,0) ply:SetBodygroup(23,0) ply:SetBodygroup(24,0) ply:SetSkin(2) return CLIENT end,
hasLicense = true, -- Has a license
})
TEAM_GEN = DarkRP.createJob("Genera", { -- Name
color = Color(0, 0, 0, 255), -- Team color
model = "models/player/keller/starwars/commander_keller.mdl", -- Player model
description = [[Genera. Osoba dowodzca ca jednostk.]], -- Job description
weapons = {"bf2017_hunter", "bf2017_dc15aa", "realrbn_tazer", "m9k_orbital_strike", "sfw_thunderbolt", "zeus_thermaldet", "smooley_royalstaff", "m9k_fists", "tfa_bf2_dc17dual", "stunstick", "weapon_cuff_elastic"}, -- Additional weapons
command = "gen", -- Command to become the job
max = 1, -- Maximum amount of said job
salary = 0, -- Salary
admin = 0, -- Requires Admin? 1 for yes, 0 for no.
vote = false, -- Do they need to vote? true for yes, false for no.
sortOrder = 97;
category = "General",
PlayerSpawn = function(ply) ply:SetHealth(700) ply:SetArmor(255) ply:SetGravity(1) ply:SetBodygroup(1,0) ply:SetBodygroup(2,0) ply:SetBodygroup(3,0) ply:SetBodygroup(4,0) ply:SetBodygroup(5,0) ply:SetBodygroup(6,0) ply:SetBodygroup(7,0) ply:SetBodygroup(8,0) ply:SetBodygroup(9,0) ply:SetBodygroup(10,0) ply:SetBodygroup(11,0) ply:SetBodygroup(12,0) ply:SetBodygroup(13,0) ply:SetBodygroup(14,0) ply:SetBodygroup(15,0) ply:SetBodygroup(16,0) ply:SetBodygroup(17,0) ply:SetBodygroup(18,0) ply:SetBodygroup(19,0) ply:SetBodygroup(20,0) ply:SetBodygroup(21,0) ply:SetBodygroup(22,0) ply:SetBodygroup(23,0) ply:SetBodygroup(24,0) ply:SetSkin(2) return CLIENT end,
hasLicense = true, -- Has a license
})
Users browsing this thread: 3 Guest(s)