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: Update the stylua-action workflow to v4 + removed permissions for helpers #993

Merged
merged 2 commits into from
Feb 13, 2025
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
2 changes: 1 addition & 1 deletion .github/workflows/StyLuaGitHubAction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.label.name == 'format_all') }}
steps:
- uses: actions/checkout@v4
- uses: JohnnyMorganz/stylua-action@v3
- uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: v0.18.0
Expand Down
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
Loading