We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35e173a commit ce3ba9aCopy full SHA for ce3ba9a
1 file changed
resource/menu/vendor/freecam/main.lua
@@ -90,6 +90,7 @@ function StartFreecamThread()
90
-- Camera/Pos updating thread
91
Citizen.CreateThread(function()
92
local ped = PlayerPedId()
93
+ local playerId = PlayerId()
94
local initialPos = GetEntityCoords(ped)
95
SetFreecamPosition(initialPos[1], initialPos[2], initialPos[3])
96
local veh = GetVehiclePedIsIn(ped, false)
@@ -113,6 +114,9 @@ function StartFreecamThread()
113
114
local frameCounter = 0
115
local loopPos, loopRotZ
116
while IsFreecamActive() do
117
+ -- Disable weapon firing while in noclip (fixes #1061)
118
+ DisablePlayerFiring(playerId, true)
119
+
120
loopPos, loopRotZ = UpdateCamera()
121
frameCounter = frameCounter + 1
122
if frameCounter > 100 then
0 commit comments