Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
TheiLLeniumStudios committed May 7, 2022
1 parent aa67e9d commit 91a7246
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Lint
uses: iLLeniumStudios/fivem-lua-lint-action@v1.0.11
uses: iLLeniumStudios/fivem-lua-lint-action@v2
with:
capture: "junit.xml"
args: "-t --formatter JUnit"
Expand All @@ -20,4 +20,4 @@ jobs:
with:
report_paths: "**/junit.xml"
check_name: Linting Report
fail_on_failure: false
fail_on_failure: false
4 changes: 2 additions & 2 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -268,15 +268,15 @@ RegisterNetEvent('qb-diving:client:UseGear', function(bool)
while not HasModelLoaded(tankModel) do
Wait(0)
end
TankObject = CreateObject(tankModel, 1.0, 1.0, 1.0, 1, 1, 0)
local TankObject = CreateObject(tankModel, 1.0, 1.0, 1.0, 1, 1, 0)
local bone1 = GetPedBoneIndex(ped, 24818)
AttachEntityToEntity(TankObject, ped, bone1, -0.25, -0.25, 0.0, 180.0, 90.0, 0.0, 1, 1, 0, 0, 2, 1)
currentGear.tank = TankObject
RequestModel(maskModel)
while not HasModelLoaded(maskModel) do
Wait(0)
end
MaskObject = CreateObject(maskModel, 1.0, 1.0, 1.0, 1, 1, 0)
local MaskObject = CreateObject(maskModel, 1.0, 1.0, 1.0, 1, 1, 0)
local bone2 = GetPedBoneIndex(ped, 12844)
AttachEntityToEntity(MaskObject, ped, bone2, 0.0, 0.0, 0.0, 180.0, 90.0, 0.0, 1, 1, 0, 0, 2, 1)
currentGear.mask = MaskObject
Expand Down
2 changes: 1 addition & 1 deletion server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ end
local function hasCoral(src)
local Player = QBCore.Functions.GetPlayer(src)
availableCoral = {}
for k, v in pairs(Config.CoralTypes) do
for _, v in pairs(Config.CoralTypes) do
local item = Player.Functions.GetItemByName(v.item)
if item then availableCoral[#availableCoral+1] = v end
end
Expand Down

0 comments on commit 91a7246

Please sign in to comment.