Skip to content

Commit

Permalink
chore: removed permissions for helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Feb 12, 2025
1 parent 75ed8bb commit d0d33c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions server-data/resources/[bpt_addons]/bpt_menu/client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ local ruiDrawContent = RageUI.DrawContent
local adminGroups = {
["mod"] = true,
["admin"] = true,
["helper"] = true,
}

CreateThread(function()
Expand Down Expand Up @@ -224,23 +223,23 @@ getPersonalMenuCategory("vehicle").drawer = function()
SetVehicleDoorOpen(plyVeh, 1, false, false)
elseif PersonalMenu.DoorState.FrontRight then
PersonalMenu.DoorState.FrontRight = false
SetVehicleDoorShut(plyVeh, 1, false, false)
SetVehicleDoorShut(plyVeh, 1, false)
end
elseif Index == 3 then
if not PersonalMenu.DoorState.BackLeft then
PersonalMenu.DoorState.BackLeft = true
SetVehicleDoorOpen(plyVeh, 2, false, false)
elseif PersonalMenu.DoorState.BackLeft then
PersonalMenu.DoorState.BackLeft = false
SetVehicleDoorShut(plyVeh, 2, false, false)
SetVehicleDoorShut(plyVeh, 2, false)
end
elseif Index == 4 then
if not PersonalMenu.DoorState.BackRight then
PersonalMenu.DoorState.BackRight = true
SetVehicleDoorOpen(plyVeh, 3, false, false)
elseif PersonalMenu.DoorState.BackRight then
PersonalMenu.DoorState.BackRight = false
SetVehicleDoorShut(plyVeh, 3, false, false)
SetVehicleDoorShut(plyVeh, 3, false)
end
end
end)
Expand Down
6 changes: 3 additions & 3 deletions server-data/resources/[bpt_addons]/bpt_menu/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ Config.AdminCommands = {
{
id = "repairveh",
name = TranslateCap("admin_repairveh_button"),
groups = { "admin", "helper" },
groups = { "admin" },
command = function()
local plyPed = PlayerPedId()
local plyVeh = GetVehiclePedIsIn(plyPed, false)
Expand Down Expand Up @@ -278,7 +278,7 @@ Config.AdminCommands = {
{
id = "showname",
name = TranslateCap("admin_showname_button"),
groups = { "admin", "mod", "helper" },
groups = { "admin", "mod" },
command = function()
PlayerVars.showName = not PlayerVars.showName

Expand Down Expand Up @@ -307,7 +307,7 @@ Config.AdminCommands = {
{
id = "revive",
name = TranslateCap("admin_revive_button"),
groups = { "admin", "helper" },
groups = { "admin" },
command = function()
local targetServerId = KeyboardInput("PM_BOX_ID", TranslateCap("dialogbox_playerid"), "", 8)
if not targetServerId then
Expand Down

0 comments on commit d0d33c3

Please sign in to comment.