Looks Sorted

This commit is contained in:
Cooldude2606
2019-05-27 22:37:59 +01:00
parent daeb6c0b9d
commit 0b9e8b8cd5
7 changed files with 574 additions and 9 deletions

View File

@@ -35,6 +35,7 @@ return {
'modules.addons.random-player-colours',
-- GUI
'modules.gui.player-list',
'modules.gui.rocket-info',
'modules.commands.debug',
-- Config Files
'config.expcore-commands.auth_admin', -- commands tagged with admin_only are blocked for non admins

37
config/rockets.lua Normal file
View File

@@ -0,0 +1,37 @@
--- This file controls what will show in each section of the rocket info gui
-- each function will be given the player and must return the value to show and a tooltip, nil will not show the stat
local Global = require 'utils.global'
local Event = require 'utils.event'
return {
stats = {
show_stats=true,
show_first_rocket = true,
show_last_rocket = true,
show_fastest_rocket = true,
show_total_rockets = true,
show_game_avg = true,
rolling_avg = {
5,10,25
}
},
milestones = {
show_milestones=true,
1,2,5,
10,20,50,
100,200,500,
1000,1500,2000,2500,
3000,3500,4000,4500,
5000
},
progress = {
show_progress = true,
allow_zoom_to_map = true,
allow_remote_launch = true,
remote_launch_admins_only = false,
remote_launch_role_permision = 'gui/rocket-info/remote_launch',
allow_toggle_active = true,
toggle_active_admins_only = false,
toggle_active_role_permision = 'gui/rocket-info/toggle-active'
}
}

View File

@@ -76,6 +76,8 @@ Roles.new_role('Moderator','Mod')
'command/clear-warnings',
'command/clear-temp-ban',
'command/clear-inventory',
'gui/rocket-info/toggle-active',
'gui/rocket-info/remote_launch',
}
Roles.new_role('Trainee','TrMod')
@@ -115,6 +117,8 @@ Roles.new_role('Pay to Win','P2W')
:set_flag('report-immune')
:set_parent('Donator')
:allow{
'gui/rocket-info/toggle-active',
'gui/rocket-info/remote_launch',
}
Roles.new_role('Donator','Don')
@@ -185,6 +189,7 @@ local default = Roles.new_role('Guest','')
'command/find-on-map',
'command/report',
'gui/player-list',
'gui/rocket-info',
}
--- Jail role