Hello!
So I've been checking absolutely everywhere, and I can't find anything that I can use at all.
I want to set a DarkRP job's camera to about 50% of the default height.
I've tried using
PlayerSpawn = function(ply)
ply:SetViewOffset(Vector(0,0,50))
end
With no luck.
Here's the full job setup:
TEAM_K9 = DarkRP.createJob("K9 Unit", {
color = Color(255, 255, 0, 255),
model = "models/pierce/police_k9.mdl",
description = [[Be a good boy.]],
weapons = {"weaponchecker","weapon_pet"},
command = "k9unit",
max = 3,
salary = 100,
admin = 0,
vote = true,
hasLicense = false,
candemote = false,
category = "Special Forces",
PlayerSpawn == function(ply)if(ply:Team() == TEAM_K9) then
ply:SetMaxHealth(50)
ply:SetHealth(50)
ply:SetArmor(50)
ply:SetRunSpeed(450)
ply:SetWalkSpeed(250)
end
end
})
I'm not super experienced with LUA in general, so I would greatly appreciate any help I could get!
Thanks!
uI've tried
Have you tried ply:SetCurrentOffset()?
Sorry, you need to Log In to post a reply to this thread.