Skip to content

Commit

Permalink
fix: reasonable values
Browse files Browse the repository at this point in the history
  • Loading branch information
TonybynMp4 authored Jan 22, 2024
1 parent 5befd1c commit 9fe42a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ local function toggleSeatbelt()
end
local seatbeltOn = not playerState.seatbelt
playerState.seatbelt = seatbeltOn
SetFlyThroughWindscreenParams(seatbeltOn and minSpeeds.buckled or minSpeeds.unbuckled, 1.0, 1.0, 1.0)
SetFlyThroughWindscreenParams(seatbeltOn and minSpeeds.buckled or minSpeeds.unbuckled, 1.0, 17.0, 10.0)
TriggerEvent('seatbelt:client:ToggleSeatbelt')
playBuckleSound(seatbeltOn)
end
Expand All @@ -43,7 +43,7 @@ local function toggleHarness()
SetPedConfigFlag(cache.ped, 32, canFlyThroughWindscreen) -- PED_FLAG_CAN_FLY_THRU_WINDSCREEN
else
local minSpeed = harnessOn and minSpeeds.harness or (playerState.seatbelt and minSpeeds.buckled or minSpeeds.unbuckled)
SetFlyThroughWindscreenParams(minSpeed, 1.0, 1.0, 1.0)
SetFlyThroughWindscreenParams(minSpeed, 1.0, 17.0, 10.0)
end
end

Expand Down Expand Up @@ -71,7 +71,7 @@ exports('HasHarness', HasHarness)

-- Main Thread
CreateThread(function()
SetFlyThroughWindscreenParams(minSpeeds.unbuckled, 1.0, 1.0, 1.0)
SetFlyThroughWindscreenParams(minSpeeds.unbuckled, 1.0, 17.0, 10.0)
end)

lib.onCache('vehicle', function()
Expand Down

0 comments on commit 9fe42a5

Please sign in to comment.