• VMatrix doesn't work?
    2 replies, posted
Hi, I tried to add an ulx command which changes the headsize, but it doesn't work [code] function ulx.bubblehead( calling_ply, target_plys, scale) for k, v in pairs( target_plys ) do if v:IsValid() then local matr = v:GetBoneMatrix(6) matr:Scale(Vector(scale, scale, scale)) v:ManipulateBoneScale(6, matr) end end ulx.fancyLogAdmin( calling_ply, "#A set the headscale for #T to #i", target_plys, scale ) end local bubble = ulx.command( "Fun", "ulx bubble", ulx.bubblehead, "!bubble" ) bubble:addParam{ type=ULib.cmds.PlayersArg } bubble:addParam{ type=ULib.cmds.NumArg, default=1, min=0, hint="multiplier" } bubble:defaultAccess( ULib.ACCESS_ADMIN ) bubble:help( "Set the head scale of a player." ) [/code]
Use code tags please and are you getting any errors?
Figured out myself, just used [code] v:ManipulateBoneScale(6, Vector(scale, scale, scale))[/code]
Sorry, you need to Log In to post a reply to this thread.