im not sure if this is exactly the right place to post this. but im working on a gamemode with a darkrp base but i need to scale the player models but the normal modelScale = function is not scaling the jobs at all.
Hey I just make modelscaling on my jobs and this here works good. But all the job you dont want to change the modelscale on you need to set the scale back to defult "modelScale = 1" and the ViewOffset to back to defult. to get the defult ViewOffset "SetViewOffset(Vector(0,0,64))" i did a simpel "print( ply:GetViewOffset() )".
-sorry for my bad eng but hope its usefull.
TEAM_BANK = AddExtraTeam("Bank manager", {
color = Color(60,0,100,255),
model = "models/player/magnusson.mdl",
description = [[ You manage the bank, alert the cops when someone is trying to raid it, and make protections from robbers]],
weapons = {},
command = "banker",
sortOrder = 101,
max = 2,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
level = 3,
modelScale = 1,
vote = false,
hasLicense = true,
category = "Citizens",
OnPlayerChangedTeam = function(ply, oldTeam, newTeam) ply:SetViewOffset(Vector(0,0,64)) end,
})
TEAM_MEDIC = DarkRP.createJob("Medic", {
color = Color(47, 79, 79, 255),
model = "models/player/kleiner.mdl",
description = [[With your medical knowledge you work to restore players to full health.
Without a medic, people cannot be healed.
Left click with the Medical Kit to heal other players.
Right click with the Medical Kit to heal yourself.]],
weapons = {"med_kit"},
command = "medic",
sortOrder = 102,
max = 3,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
modelScale = 1,
vote = false,
hasLicense = false,
medic = true,
category = "Citizens",
OnPlayerChangedTeam = function(ply, oldTeam, newTeam) ply:SetViewOffset(Vector(0,0,64)) end,
})
TEAM_DWARF = DarkRP.createJob("Dwarf", {
color = Color(150, 20, 150, 255),
model = "models/player/Group01/Male_02.mdl",
description = [[The Dwarf]],
weapons = {},
command = "dwarf",
sortOrder = 103,
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
level = 1,
modelScale = 0.8,
vote = false,
hasLicense = false,
category = "Citizens",
OnPlayerChangedTeam = function(ply, oldTeam, newTeam) ply:SetViewOffset(Vector(0,0,50)) end,
})
i dont really get what you mean but i need it to force scale certain jobs like this http://prntscr.com/l1124b without having to run a ulx command
Entity/SetModelScale
yes but how would i apply that to a darkrp based job
Use the PlayerSpawn custom field. You really should look into this stuff more first.
https://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
i already looked at that page trust me ive been staring at this for nearly 12 hours now i added this to the player spawn field ply:SetModelScale(0.65, 0) but it still doesn't work
Try doing it in PlayerLoadout
tried and still not working
Sorry, you need to Log In to post a reply to this thread.