Skip to content

Commit

Permalink
fix: toggle extras
Browse files Browse the repository at this point in the history
  • Loading branch information
artur-michalak authored Jun 19, 2024
1 parent 5a62ea2 commit 61d9708
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,10 @@ RegisterNetEvent('radialmenu:client:setExtra', function(id)
SetVehicleAutoRepairDisabled(cache.vehicle, true) -- Forces Auto Repair off when Toggling Extra [GTA 5 Niche Issue]
if DoesExtraExist(cache.vehicle, extra) then
if IsVehicleExtraTurnedOn(cache.vehicle, extra) then
qbx.setVehicleExtra(cache.vehicle, extra, true)
qbx.setVehicleExtra(cache.vehicle, extra, false)
exports.qbx_core:Notify(locale('error.extra_deactivated', extra), 'error', 2500)
else
qbx.setVehicleExtra(cache.vehicle, extra, false)
qbx.setVehicleExtra(cache.vehicle, extra, true)
exports.qbx_core:Notify(locale('success.extra_activated', extra), 'success', 2500)
end
else
Expand Down

0 comments on commit 61d9708

Please sign in to comment.