Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
GhzGarage committed Nov 13, 2023
1 parent f7b4194 commit 0d4bea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ RegisterNetEvent('seatbelt:client:ToggleCruise', function() -- Triggered in smal
cruiseOn = not cruiseOn
end)

RegisterNetEvent('hud:client:UpdateNitrous', function(_, nitroLevel, bool)
RegisterNetEvent('hud:client:UpdateNitrous', function(nitroLevel, bool)

This comment has been minimized.

Copy link
@tomiichx

tomiichx Nov 13, 2023

If this has worked before just fine, then you broke it now. Whatever the first argument was, now it's going to be considered as nitroLevel, which isn't the actual nitro level. Arguments that are unused in a function should be replaced with a _, which will make the warning disappear.

This comment has been minimized.

Copy link
@tomiichx

tomiichx Nov 13, 2023

But it's fine if it isn't used here or in any other script.

This comment has been minimized.

Copy link
@Qwerty1Verified

Qwerty1Verified Nov 14, 2023

Removing the first parameter in this commit is fine because qb-mechanicjob has been rewritten. The new usage is having the first parameter being the nitro level.

nos = nitroLevel
nitroActive = bool
end)
Expand Down

0 comments on commit 0d4bea2

Please sign in to comment.