local CATEGORY_NAME = "Custom Commands"
------------------------------ Up ------------------------------
function ulx.up( calling_ply )
local ent = calling_ply:GetEyeTrace().Entity
if not IsValid( ent ) then return end
local y = ent:GetAngles().y
local pos = ent:GetPos()
ent:SetAngles( Angle(0, y, 0) )
ent:PhysWake()
end
local up = ulx.command( CATEGORY_NAME, "ulx up", ulx.up, "!up" )
up:defaultAccess( ULib.ACCESS_ADMIN )
up:help( "Sets the looked at entity upright." )