@@ -279,6 +279,10 @@ y=y+B aTab1.VehicleHealth = guiCreateLabel ( 0.26, y, 0.25, 0.04, "Vehicle Heal
279279 guiGridListAddColumn ( aTab3 .ServerSettingsGridList , " Status/Value" , 0.2 )
280280 guiGridListSetSortingEnabled ( aTab3 .ServerSettingsGridList , false )
281281
282+ if not hasPermissionTo (" command.setglitchenabled" ) or not hasPermissionTo (" command.setworldspecprop" ) then
283+ guiSetEnabled (aTab3 .ServerSettingsGridList , false )
284+ end
285+
282286 local glitchData = {
283287 {name = " Quick Reload" , id = " quickreload" },
284288 {name = " Fast Move" , id = " fastmove" },
@@ -339,9 +343,9 @@ y=y+B aTab1.VehicleHealth = guiCreateLabel ( 0.26, y, 0.25, 0.04, "Vehicle Heal
339343 guiGridListSetItemColor (aTab3 .ServerSettingsGridList , row , 3 , 255 , 0 , 0 )
340344 aTab3 .ServerSettings [prop .id ] = {row = row , type = " worldprop" , enabled = false }
341345 end
342- aTab3 .SettingsReset = guiCreateButton (0.61 , 0.70 , 0.15 , 0.04 , " Reset All" , true , aTab3 .Tab )
343- aTab3 .SettingsEnableAll = guiCreateButton (0.61 , 0.75 , 0.15 , 0.04 , " Enable All" , true , aTab3 .Tab )
344- aTab3 .SettingsDisableAll = guiCreateButton (0.61 , 0.80 , 0.15 , 0.04 , " Disable All" , true , aTab3 .Tab )
346+ aTab3 .SettingsReset = guiCreateButton (0.61 , 0.70 , 0.15 , 0.04 , " Reset All" , true , aTab3 .Tab , " setglitchenabled " )
347+ aTab3 .SettingsEnableAll = guiCreateButton (0.61 , 0.75 , 0.15 , 0.04 , " Enable All" , true , aTab3 .Tab , " setglitchenabled " )
348+ aTab3 .SettingsDisableAll = guiCreateButton (0.61 , 0.80 , 0.15 , 0.04 , " Disable All" , true , aTab3 .Tab , " setglitchenabled " )
345349
346350
347351 aTab4 = {}
@@ -1069,19 +1073,18 @@ function aClientDoubleClick ( button )
10691073 aBanDetails ( aBans [" Serial" ][selserial ] and selserial or selip )
10701074 end
10711075 elseif ( source == aTab3 .ServerSettingsGridList ) then
1072- local selectedRow = guiGridListGetSelectedItem (aTab3 .ServerSettingsGridList )
1076+ local selectedRow = guiGridListGetSelectedItem (aTab3 .ServerSettingsGridList )
10731077 if selectedRow ~= - 1 then
10741078 local settingType = guiGridListGetItemData (aTab3 .ServerSettingsGridList , selectedRow , 1 )
10751079 local settingId = guiGridListGetItemData (aTab3 .ServerSettingsGridList , selectedRow , 2 )
1076- local settingName = guiGridListGetItemText (aTab3 .ServerSettingsGridList , selectedRow , 2 )
1077- if settingType == " glitch" then
1080+ if settingType == " glitch" and hasPermissionTo (" command.setglitchenabled" ) then
10781081 local currentStatus = aTab3 .ServerSettings [settingId ].enabled
10791082 local newStatus = not currentStatus
10801083 aTab3 .ServerSettings [settingId ].enabled = newStatus
10811084 guiGridListSetItemText (aTab3 .ServerSettingsGridList , selectedRow , 3 , newStatus and " Enabled" or " Disabled" , false , false )
10821085 guiGridListSetItemColor (aTab3 .ServerSettingsGridList , selectedRow , 3 , newStatus and 0 or 255 , newStatus and 255 or 0 , 0 )
10831086 triggerServerEvent (" aServer" , localPlayer , " setglitchenabled" , settingId , newStatus )
1084- elseif settingType == " worldprop" then
1087+ elseif settingType == " worldprop" and hasPermissionTo ( " command.setworldspecprop " ) then
10851088 local currentStatus = aTab3 .ServerSettings [settingId ].enabled
10861089 local newStatus = not currentStatus
10871090 aTab3 .ServerSettings [settingId ].enabled = newStatus
0 commit comments