--Models
function ulx.models( calling_ply )
calling_ply:ConCommand( "playermodel_selector" )
end
local models = ulx.command( "Aliases", "ulx models", ulx.models, { "!playermodel", "!pmodel", "!pmodels", "!playermodels", "!models" } )
models:defaultAccess( ULib.ACCESS_ALL )
models:help( "Opens the player model selector" )
--Thirdperson
function ulx.simplethirdperson( calling_ply )
calling_ply:ConCommand( "simple_thirdperson_menu" )
end
local simplethirdperson = ulx.command( "Aliases", "ulx simplethirdperson", ulx.simplethirdperson, {"!thirdperson2", "!3p", "!thirdp", "!3person"} )
simplethirdperson:defaultAccess( ULib.ACCESS_ALL )
simplethirdperson:help( "Opens the Simple ThirdPerson menu" )
--Seat Weapons
function ulx.seatweapons( calling_ply )
calling_ply:ConCommand( "weaponseats_toggle" )
end
local seatweapons = ulx.command( "Aliases", "ulx seatweapons", ulx.seatweapons, {"!sw", "!seatweapons", "!cc"} )
seatweapons:defaultAccess( ULib.ACCESS_ALL )
seatweapons:help( "Toggles Seat Weapons" )
--Dance (not working)
--function ulx.dance( calling_ply )
-- calling_ply:ConCommand( "act dance" )
--end
--local dance = ulx.command( "Aliases", "ulx dance", ulx.dance, {"!dance", "!dances"} )
--dance:defaultAccess( ULib.ACCESS_ALL )
--dance:help( "Dances" )
--Kill doesn't work on sandbox
function ulx.killme( calling_ply )
calling_ply:Kill()
end
local killme = ulx.command( "Aliases", "ulx killme", ulx.killme, { "!kill", "!suicide", "/kill", "/suicide", "!killme" } )
killme:defaultAccess( ULib.ACCESS_ALL )
killme:help( "Commits suicide" )
--Website
--function ulx.website( calling_ply )
-- gui.OpenURL( "http://chillservers.com/" )
--end
--local website = ulx.command( "Aliases", "ulx website", ulx.website, { "!website", "!homepage" } )
--website:defaultAccess( ULib.ACCESS_ALL )
--website:help( "Opens Website" )
--cac doesn't work on sandbox
function ulx.cac( calling_ply )
calling_ply:ConCommand( "+cac_menu" )
calling_ply:ConCommand( "ulx cac" )
end
local cac = ulx.command( "Aliases", "ulx cac", ulx.cac, { "!cac", "!cake", "!anticheat", "!cheat" } )
cac:defaultAccess( ULib.ACCESS_ALL )
cac:help( "Opens the cac anticheat menu" )
--toolsearch doesn't work
function ulx.search( calling_ply )
calling_ply:ConCommand( "tool_search" )
end
local search = ulx.command( "Aliases", "ulx search", ulx.search, { "!search", "!tools" } )
search:defaultAccess( ULib.ACCESS_ALL )
search:help( "Opens the tool search menu" )
--Radial doesn't work
function ulx.radial( calling_ply )
calling_ply:ConCommand( "+gb-radial" )
end
local radial = ulx.command( "Aliases", "ulx radial", ulx.radial, { "!radial", "!rad" } )
radial:defaultAccess( ULib.ACCESS_ALL )
radial:help( "Opens the radial menu" )
--onplayx doesn't work
function ulx.onplayx( calling_ply )
calling_ply:ConCommand( "playx_enabled 1" )
end
local onplayx = ulx.command( "Aliases", "ulx onplayx", ulx.onplayx, { "!onplayx", "!playxon" } )
onplayx:defaultAccess( ULib.ACCESS_ALL )
onplayx:help( "Enables Playx" )
--offplayx doesn't work
function ulx.offplayx( calling_ply )
calling_ply:ConCommand( "playx_enabled 1" )
end
local offplayx = ulx.command( "Aliases", "ulx offplayx", ulx.offplayx, { "!offplayx", "!playxoff" } )
offplayx:defaultAccess( ULib.ACCESS_ALL )
offplayx:help( "Disables Playx" )
--Pac doesn't work
function ulx.pac( calling_ply )
calling_ply:ConCommand( "pac_editor" )
end
local pac = ulx.command( "Aliases", "ulx pac", ulx.pac, { "!pac3", "!pac" } )
pac:defaultAccess( ULib.ACCESS_ALL )
pac:help( "Opens the PAC editor" )