Skip to content

Commit

Permalink
fix(menu/noclip): fixed invincibility on noclip (closes #586)
Browse files Browse the repository at this point in the history
  • Loading branch information
tabarra committed Feb 21, 2022
1 parent 75813d9 commit 8ebf216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/menu/client/cl_player_mode.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ local function toggleFreecam(enabled)
noClipEnabled = enabled
local ped = PlayerPedId()
SetEntityVisible(ped, not enabled)
SetPlayerInvincible(ped, enabled)
SetEntityInvincible(ped, enabled)
FreezeEntityPosition(ped, enabled)

if enabled then
Expand Down

0 comments on commit 8ebf216

Please sign in to comment.