Quantum is a Garry's Mod RPG framework.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
-- __ _ _______ _ __
|
|
|
|
-- / / /\ | | |__ __| | | \ \
|
|
|
|
-- / / / \ | |_ __ ___ | | ___ ___| |__ \ \
|
|
|
|
-- < < / /\ \ | | '_ ` _ \| |/ _ \/ __| '_ \ > >
|
|
|
|
-- \ \ / ____ \| | | | | | | | __/ (__| | | | / /
|
|
|
|
-- \_\ /_/ \_\_|_| |_| |_|_|\___|\___|_| |_| /_/
|
|
|
|
|
|
|
|
|
|
|
|
if SERVER then
|
|
|
|
|
|
|
|
local keyfuncs = {
|
|
|
|
["mainMenu"] = function( pl )
|
|
|
|
Quantum.Net.OpenMenu( pl, "main", { chars = Quantum.Server.Char.GetPlayerChars_cl( pl ), resume = true } )
|
|
|
|
end,
|
|
|
|
["charinfo"] = function( pl )
|
|
|
|
Quantum.Net.OpenMenu( pl, "charinfo", {} )
|
|
|
|
end
|
|
|
|
}
|
|
|
|
|
|
|
|
function GM:KeyRelease( ply, key )
|
|
|
|
if( keyfuncs[key] ) then keyfuncs[key]( ply ) end
|
|
|
|
end
|
|
|
|
function GM:ShowHelp( ply ) keyfuncs["mainMenu"]( ply ) end
|
|
|
|
function GM:ShowSpare2( ply ) keyfuncs["charinfo"]( ply ) end
|
|
|
|
|
|
|
|
end
|