Skip to content

Commit

Permalink
Merge branch 'main-fork'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathu-lmn committed Jan 26, 2025
2 parents 089c45d + 82dd540 commit 9f76fe5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/NoIdleCam.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RegisterCommand('idlecamoff', function() -- help2 31, 167, 9
})
DisableIdleCamera(true)
SetPedCanPlayAmbientAnims(PlayerPedId(), false)
SetResourceKvpInt("idleCam", 1)
SetResourceKvpInt("idleCamToggle", 1)
end, false)

RegisterCommand('idlecamon', function() -- help2 31, 167, 9
Expand All @@ -19,14 +19,14 @@ RegisterCommand('idlecamon', function() -- help2 31, 167, 9
})
DisableIdleCamera(false)
SetPedCanPlayAmbientAnims(PlayerPedId(), true)
SetResourceKvpInt("idleCam", 2)
SetResourceKvpInt("idleCamToggle", 2)
end, false)

CreateThread(function()
TriggerEvent("chat:addSuggestion", "/idlecamon", "Re-enables the idle cam")
TriggerEvent("chat:addSuggestion", "/idlecamoff", "Disables the idle cam")

local idleCamKvp = GetResourceKvpInt("idleCam")
local idleCamKvp = GetResourceKvpInt("idleCamToggle")
if idleCamKvp == 0 then
return
end
Expand Down

0 comments on commit 9f76fe5

Please sign in to comment.