script_name('FishEyeEffect')
script_version_number(001)
script_author('Receiver')
script_url('https://vk.com/supreme1696')
local enabled = true
local locked = false
function main()
repeat wait(0) until isSampAvailable()
--[[_______________COMMANDS_______________]]--
sampRegisterChatCommand('fisheye', function()
enabled = not enabled
end)
while true do
wait(0)
if enabled then
if isCurrentCharWeapon(PLAYER_PED, 34) and isKeyDown(2) then
if not locked then
cameraSetLerpFov(70.0, 70.0, 1000, 1)
locked = true
end
else
cameraSetLerpFov(101.0, 101.0, 1000, 1)
locked = false
end
end
end
end