Skip to content

♻️ refactor getCoords, and fix lint issues #69

♻️ refactor getCoords, and fix lint issues

♻️ refactor getCoords, and fix lint issues #69

Triggered via push June 20, 2024 10:00
Status Failure
Total duration 32s
Artifacts
Stylua Check
19s
Stylua Check
Fit to window
Zoom out
Zoom in

Annotations

101 errors and 1 warning
Stylua Check
The process '/home/runner/work/_temp/2ffae6b9-8590-40f1-832b-cac991f9513a/stylua' failed with exit code 2
lua.server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:51:10: unused global variable 'AddSharedAccount'
lua.server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:2: lua#L1
server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:113:15: unused variable 'label'
lua.server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:3: lua#L1
server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:127:19: value assigned to variable 'money' is unused
lua.server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:4: lua#L1
server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:131:32: accessing undefined variable 'NULL'
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:7:27: shadowing upvalue 'name' on line 1
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:2: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:14:30: shadowing upvalue 'name' on line 1
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:3: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:23:27: shadowing upvalue 'name' on line 1
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:4: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:30:27: shadowing upvalue 'name' on line 1
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:5: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:43:34: accessing undefined variable 'item'
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:6: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:60:16: accessing undefined variable 'item'
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:7: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:63:28: shadowing upvalue 'name' on line 1
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/main.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/main.lua:93:10: unused global variable 'AddSharedInventory'
lua.server-data/resources/[bpt_addons]/bpt_basicneeds/client/main.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_basicneeds/client/main.lua:33:86: shadowing upvalue argument 'status' on line 32
lua.server-data/resources/[bpt_addons]/bpt_basicneeds/client/main.lua:2: lua#L1
server-data/resources/[bpt_addons]/bpt_basicneeds/client/main.lua:35:19: shadowing upvalue argument 'status' on line 32
lua.server-data/resources/[bpt_addons]/bpt_basicneeds/client/main.lua:3: lua#L1
server-data/resources/[bpt_addons]/bpt_basicneeds/client/main.lua:41:19: shadowing upvalue argument 'status' on line 32
lua.server-data/resources/[bpt_addons]/bpt_boat/client/marker.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_boat/client/marker.lua:130:102: accessing undefined variable 'LastZoneNum'
lua.server-data/resources/[bpt_addons]/bpt_boat/client/marker.lua:2: lua#L1
server-data/resources/[bpt_addons]/bpt_boat/client/marker.lua:131:37: accessing undefined variable 'LastZoneNum'
lua.server-data/resources/[bpt_addons]/bpt_boat/client/marker.lua:3: lua#L1
server-data/resources/[bpt_addons]/bpt_boat/client/marker.lua:131:89: accessing undefined variable 'LastZoneNum'
lua.server-data/resources/[bpt_addons]/bpt_dmvschool/client/main.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_dmvschool/client/main.lua:298:32: accessing undefined variable 'HasAlreadyEnteredMarker'
lua.server-data/resources/[bpt_addons]/bpt_dmvschool/client/main.lua:2: lua#L1
server-data/resources/[bpt_addons]/bpt_dmvschool/client/main.lua:298:76: accessing undefined variable 'LastZone'
lua.server-data/resources/[bpt_addons]/bpt_dmvschool/client/main.lua:3: lua#L1
server-data/resources/[bpt_addons]/bpt_dmvschool/client/main.lua:304:31: accessing undefined variable 'HasAlreadyEnteredMarker'
lua.server-data/resources/[bpt_addons]/bpt_dmvschool/client/main.lua:4: lua#L1
server-data/resources/[bpt_addons]/bpt_dmvschool/client/main.lua:306:59: accessing undefined variable 'LastZone'
lua.server-data/resources/[bpt_addons]/bpt_hunting/client/main.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_hunting/client/main.lua:16:23: value assigned to variable 'ped' is overwritten on line 19 before use
lua.server-data/resources/[bpt_addons]/bpt_hunting/client/main.lua:2: lua#L1
server-data/resources/[bpt_addons]/bpt_hunting/client/main.lua:24:17: loop is executed at most once
lua.server-data/resources/[bpt_addons]/bpt_lscustom/client/main.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_lscustom/client/main.lua:616:14: accessing undefined variable 'Sleep'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:40:16: unused function 'firstToUpper'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:2: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:106:34: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:3: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:106:84: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:4: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:106:107: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:5: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:142:18: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:6: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:177:10: unused global variable 'getCamDirection'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:7: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:178:76: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:8: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:196:27: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:9: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:202:19: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:10: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:203:24: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:11: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:210:15: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:12: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:214:10: unused global variable 'startAnimAction'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:13: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:216:15: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:14: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:220:10: unused global variable 'CheckQuantity'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:15: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:297:31: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:16: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:312:35: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:17: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:317:36: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:18: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:342:36: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:19: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:347:37: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:20: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:390:35: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:21: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:395:36: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:22: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:411:35: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:23: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:416:36: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:24: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:429:5: accessing undefined variable 'societyMoney'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:25: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:433:46: accessing undefined variable 'societyMoney'
lua.server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:51:10: unused global variable 'AddSharedAccount'
lua.server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:2: lua#L1
server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:113:15: unused variable 'label'
lua.server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:3: lua#L1
server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:127:19: value assigned to variable 'money' is unused
lua.server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:4: lua#L1
server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:131:32: accessing undefined variable 'NULL'
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:7:27: shadowing upvalue 'name' on line 1
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:2: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:14:30: shadowing upvalue 'name' on line 1
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:3: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:23:27: shadowing upvalue 'name' on line 1
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:4: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:30:27: shadowing upvalue 'name' on line 1
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:5: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:43:34: accessing undefined variable 'item'
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:6: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:60:16: accessing undefined variable 'item'
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:7: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:63:28: shadowing upvalue 'name' on line 1
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/main.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/main.lua:93:10: unused global variable 'AddSharedInventory'
lua.server-data/resources/[bpt_addons]/bpt_basicneeds/client/main.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_basicneeds/client/main.lua:33:86: shadowing upvalue argument 'status' on line 32
lua.server-data/resources/[bpt_addons]/bpt_basicneeds/client/main.lua:2: lua#L1
server-data/resources/[bpt_addons]/bpt_basicneeds/client/main.lua:35:19: shadowing upvalue argument 'status' on line 32
lua.server-data/resources/[bpt_addons]/bpt_basicneeds/client/main.lua:3: lua#L1
server-data/resources/[bpt_addons]/bpt_basicneeds/client/main.lua:41:19: shadowing upvalue argument 'status' on line 32
lua.server-data/resources/[bpt_addons]/bpt_boat/client/marker.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_boat/client/marker.lua:130:102: accessing undefined variable 'LastZoneNum'
lua.server-data/resources/[bpt_addons]/bpt_boat/client/marker.lua:2: lua#L1
server-data/resources/[bpt_addons]/bpt_boat/client/marker.lua:131:37: accessing undefined variable 'LastZoneNum'
lua.server-data/resources/[bpt_addons]/bpt_boat/client/marker.lua:3: lua#L1
server-data/resources/[bpt_addons]/bpt_boat/client/marker.lua:131:89: accessing undefined variable 'LastZoneNum'
lua.server-data/resources/[bpt_addons]/bpt_dmvschool/client/main.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_dmvschool/client/main.lua:298:32: accessing undefined variable 'HasAlreadyEnteredMarker'
lua.server-data/resources/[bpt_addons]/bpt_dmvschool/client/main.lua:2: lua#L1
server-data/resources/[bpt_addons]/bpt_dmvschool/client/main.lua:298:76: accessing undefined variable 'LastZone'
lua.server-data/resources/[bpt_addons]/bpt_dmvschool/client/main.lua:3: lua#L1
server-data/resources/[bpt_addons]/bpt_dmvschool/client/main.lua:304:31: accessing undefined variable 'HasAlreadyEnteredMarker'
lua.server-data/resources/[bpt_addons]/bpt_dmvschool/client/main.lua:4: lua#L1
server-data/resources/[bpt_addons]/bpt_dmvschool/client/main.lua:306:59: accessing undefined variable 'LastZone'
lua.server-data/resources/[bpt_addons]/bpt_hunting/client/main.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_hunting/client/main.lua:16:23: value assigned to variable 'ped' is overwritten on line 19 before use
lua.server-data/resources/[bpt_addons]/bpt_hunting/client/main.lua:2: lua#L1
server-data/resources/[bpt_addons]/bpt_hunting/client/main.lua:24:17: loop is executed at most once
lua.server-data/resources/[bpt_addons]/bpt_lscustom/client/main.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_lscustom/client/main.lua:616:14: accessing undefined variable 'Sleep'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:40:16: unused function 'firstToUpper'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:2: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:106:34: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:3: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:106:84: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:4: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:106:107: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:5: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:142:18: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:6: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:177:10: unused global variable 'getCamDirection'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:7: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:178:76: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:8: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:196:27: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:9: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:202:19: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:10: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:203:24: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:11: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:210:15: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:12: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:214:10: unused global variable 'startAnimAction'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:13: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:216:15: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:14: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:220:10: unused global variable 'CheckQuantity'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:15: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:297:31: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:16: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:312:35: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:17: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:317:36: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:18: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:342:36: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:19: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:347:37: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:20: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:390:35: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:21: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:395:36: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:22: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:411:35: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:23: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:416:36: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:24: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:429:5: accessing undefined variable 'societyMoney'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:25: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:433:46: accessing undefined variable 'societyMoney'
Stylua Check
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: JohnnyMorganz/stylua-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.