Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: implemented support role with some administrative permissions #865

Merged
merged 3 commits into from
Oct 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading