diff --git a/client.lua b/client.lua index bf6f37e..7fd8c23 100644 --- a/client.lua +++ b/client.lua @@ -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 @@ -181,6 +184,7 @@ RegisterNetEvent("wert-camera:client:use-camera", function() end) else FullClose() + end end end)