Skip to content

Commit

Permalink
Merge pull request #865 from bitpredator/dev
Browse files Browse the repository at this point in the history
chore: implemented support role with some administrative permissions
  • Loading branch information
bitpredator authored Oct 26, 2024
2 parents bafe45d + 5a2b040 commit b61ea81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 23 deletions.
23 changes: 2 additions & 21 deletions server-data/resources/[bpt_addons]/bpt_menu/client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ local ruiDrawContent = RageUI.DrawContent
local adminGroups = {
["mod"] = true,
["admin"] = true,
["helper"] = true,
}

CreateThread(function()
Expand Down Expand Up @@ -145,26 +146,6 @@ function KeyboardInput(entryTitle, textEntry, inputText, maxLength)
end
end

function startAttitude(animSet)
if not animSet then
ResetPedMovementClipset(plyPed, 1.0)
return
end

LoadAnimSet(animSet)

SetPedMotionBlur(plyPed, false)
SetPedMovementClipset(plyPed, animSet, 1.0)

RemoveAnimSet(animSet)
end

function startAnim(animDict, animName)
LoadAnimDict(animDict)
TaskPlayAnim(plyPed, animDict, animName, 8.0, 1.0, -1, 49, 0, false, false, false)
RemoveAnimDict(animDict)
end

function DrawPersonalMenu()
ruiDrawContent(drawContentOptions, function()
for i = 1, #personalMenuCategories do
Expand Down Expand Up @@ -235,7 +216,7 @@ getPersonalMenuCategory("vehicle").drawer = function()
SetVehicleDoorOpen(plyVeh, 0, false, false)
elseif PersonalMenu.DoorState.FrontLeft then
PersonalMenu.DoorState.FrontLeft = false
SetVehicleDoorShut(plyVeh, 0, false, false)
SetVehicleDoorShut(plyVeh, 0, false)
end
elseif Index == 2 then
if not PersonalMenu.DoorState.FrontRight then
Expand Down
4 changes: 2 additions & 2 deletions server-data/resources/[bpt_addons]/bpt_menu/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ Config.AdminCommands = {
{
id = "showname",
name = TranslateCap("admin_showname_button"),
groups = { "admin", "mod" },
groups = { "admin", "mod", "helper" },
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" },
groups = { "admin", "helper" },
command = function()
local targetServerId = KeyboardInput("PM_BOX_ID", TranslateCap("dialogbox_playerid"), "", 8)
if not targetServerId then
Expand Down

0 comments on commit b61ea81

Please sign in to comment.