Skip to content

Commit

Permalink
Disabling camera use in car
Browse files Browse the repository at this point in the history
There is bug when you are in car and trying to use camera, whole car moving when you zoom or rotate..
  • Loading branch information
NeMyOriginal authored Apr 2, 2022
1 parent ce5b301 commit 830d5c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ function HandleZoom(cam)
end

RegisterNetEvent("wert-camera:client:use-camera", function()
if IsPedInAnyVehicle(PlayerPedId(), false) then
ESX.ShowNotification('You can`t use camera in car!')
else
if not active then
active = true

Expand Down Expand Up @@ -181,6 +184,7 @@ RegisterNetEvent("wert-camera:client:use-camera", function()
end)
else
FullClose()
end
end
end)

Expand Down

0 comments on commit 830d5c4

Please sign in to comment.