Untitled
unknown
plain_text
3 years ago
4.3 kB
12
Indexable
bleur.config = {}
bleur.settings = {}
bleur.lang = {}
bleur.commands = {}
/*---------------------------------------------------------------------------
User settings - Only defaults!
Do not change these, these are what makes it look good and subtle!
---------------------------------------------------------------------------*/
bleur.settings.blurLayers = 6
bleur.settings.blurDensity = 12
bleur.settings.darkSheetAlpha = 150
/*---------------------------------------------------------------------------
Config
---------------------------------------------------------------------------*/
bleur.config.webpage = "https://scriptfodder.com/users/view/76561197999799284"
--Define admin ranks to show in 'Staff Online'
bleur.config.adminRanks = {}
bleur.config.adminRanks[ "superadmin" ] = "Super Admin"
bleur.config.adminRanks[ "admin" ] = "Admin"
bleur.config.adminRanks[ "moderator" ] = "Moderator"
--Define what stats are shown in the 'Game Info'
bleur.config.stats = {}
bleur.config.stats[ "Server Name:" ] = function() return GetHostName() end
bleur.config.stats[ "Players Online:" ] = function() return #player.GetAll() .. " / " .. game.MaxPlayers() end
bleur.config.stats[ "Map:" ] = function() return game.GetMap() end
bleur.config.stats[ "Uptime: " ] = function() return os.date( "%H:%M:%S", RealTime() ) end
bleur.config.stats[ "Props: " ] = function() return #ents.FindByClass( "prop_physics" ) end
--Categories
bleur.config.useCategorisedJobs = true
/*---------------------------------------------------------------------------
Lang, don't modify it - it's useless, only for setting translation
---------------------------------------------------------------------------*/
bleur.lang.blurLayers = "Blur layers (Default: 6)"
bleur.lang.blurDensity = "Blur density (Default: 12)"
bleur.lang.darkSheetAlpha = "Dark sheet alpha (Default: 150)"
/*---------------------------------------------------------------------------
Materials
---------------------------------------------------------------------------*/
bleur.materials = {}
bleur.materials[ "job" ] = Material( "bleur_menu/job.png" )
bleur.materials[ "salary" ] = Material( "bleur_menu/salary.png" )
bleur.materials[ "weapons" ] = Material( "bleur_menu/weapons.png" )
bleur.materials[ "voteOnly" ] = Material( "bleur_menu/voteonly.png" )
bleur.materials[ "gunLicense" ] = Material( "bleur_menu/license.png" )
bleur.materials[ "jobsOccupied" ] = Material( "bleur_menu/jobsoccupied.png" )
bleur.materials[ "man" ] = Material( "bleur_menu/man.png" )
bleur.materials[ "name" ] = Material( "bleur_menu/name.png" )
bleur.materials[ "category" ] = Material( "bleur_menu/category.png" )
/*---------------------------------------------------------------------------
Commands
cmd - cmd to run
text - text over button
prompt - what messages should show up if arguments are needed
restrict - who should be able to see it
---------------------------------------------------------------------------*/
bleur.commands[ 1 ] =
{
cmd = "advert",
text = "Advertise something to everyone in the server",
prompt = { "Input text message" },
}
bleur.commands[ 2 ] =
{
cmd = "wanted",
text = "Make a player wanted. This is needed to get them arrested",
prompt = { "Input target", "Input wanted reason" },
restrict = function( ply ) return ply:Team() == TEAM_CP or ply:Team() == TEAM_CHIEF end,
}
bleur.commands[ 3 ] =
{
cmd = "removeletters",
text = "Remove all of your letters",
}
bleur.commands[ 4 ] =
{
cmd = "unownalldoors",
text = "Sell all of your doors",
}
bleur.commands[ 5 ] =
{
cmd = "lockdown",
text = "Start a lockdown. Everyone will have to stay inside",
restrict = function( ply ) return ply:Team() == TEAM_MAYOR end,
}
bleur.commands[ 6 ] =
{
cmd = "check",
text = "Write a cheque for a specific person",
prompt = { "Input recipent", "Input amount" },
}
bleur.commands[ 7 ] =
{
cmd = "resetlaws",
text = "Reset all laws",
restrict = function( ply ) return ply:Team() == TEAM_MAYOR end,
}
bleur.commands[ 8 ] =
{
cmd = "addowner",
text = "Invite someone to co-own the door you're looking at",
prompt = { "Input co-owner" }
}
--sort it by commands
table.sort( bleur.commands, function( a, b ) return a.cmd < b.cmd end )Editor is loading...