# Info | Binoculars

<figure><img src="/files/64Zivw0yJXQfwaJEH2GG" alt=""><figcaption></figcaption></figure>

### Description

Introducing the most advanced Binocular script for fivem servers, with this script you can have a binocular with a zoom level of up to 130x and different view modi like thermal or night. You can create as many usable items as you want and configure the view modes for every item individually or even job lock them. The binoculars has an impressive ui only done with native gta scaleforms. You even can create static binoculars at positions with a prop there and charge money for using. The script supports ESX and QBCORE out of the box, but can be used with every other framework or even standalone.

### Buy

{% embed url="<https://shop.nextscripts.pro/package/5381751>" %}
BUY THE BINOCULARS
{% endembed %}

### Showcase Video

{% embed url="<https://youtu.be/LoNN65QMIZM>" %}
BINOCULARS SHOWCASE VIDEO
{% endembed %}

### Features

* 0.00ms idle
* ESX/QBCORE/STANDALONE
* Synced animation & prop
* Different view modi (standart, thermal, night)
* Infinite items with different view modi assigned
* Job-lock certian items
* Ped moves with direction while rotating
* Native scaleform UI
* Zoomlevel & view mode displayed in UI
* Create static telescopes at positions with props\*

### Config

```lua
Config = {}

Config.Framework = "ESX" -- ESX, QBCORE, CUSTOM or STANDALONE
Config.UseESXExport = false -- Do you use ESX Version 1.8.5 or higher ??
Config.ESXTrigger = 'esx:getSharedObject'

Config.Locale = "de" -- en, de or create you own language in locales.lua

-------------------------
-- KeyMapping Settings --
-------------------------
Config.UseKeyMapping = false
Config.KeyMappingKey = 'H'
Config.KeyMappingSettings = {
	default = "STANDART",
	standart = true,
	thermal = false,
	night = false
}

-------------------
-- Zoom Settings --
-------------------
Config.MinZoom = 65.0 -- Its FOV so 1 is most Zoomed in and 130 is most zoomed out. I would not reccomed to set it higher than 165 so you dont see yourself in the fov
Config.MaxZoom = 1.0	-- Can not be smaller than one
Config.StandartZoom = 65.0 -- The value has to be between Config.MinZoom & Config.MaxZoom

-------------------------
-- How far you can Pan --
-------------------------
Config.MaxPanUp = 50.0
Config.MaxPanDown = -30.0

--------------------------
-- Roation & Zoom Speed --
--------------------------
Config.PanSpeed = 1
Config.ZoomSpeed = 1

-----------------
-- UI Settings --
-----------------
Config.DrawBinocularRings = true	-- You want the Black rings or not
Config.DrawCrosshair = true			-- You want the Crosshair or not
Config.DrawControlInstructions = true	-- You cant the to Display the Keys on Bottom Right

Config.ResetZoom = true	-- Reset the Zoom to Config.StandartZoom if you stop using the Binocular

Config.DrawVisionName = true	-- Text which shows the Current Name of the Vision State (Normal, Thermal, Night)

Config.DrawZoomLevel = true			-- You want a Text with the current Zoom Level
Config.ZoomLevelPosition = 'middle'	-- "middle" or "top-right"

Config.Items = {
	["binoculars"] = {
		default = "STANDART",
		standart = true,
		thermal = true,
		night = true,
		joblock = false,
		jobs = {

		}
	},

	--[[["multibinoculars"] = {
		default = "STANDART",
		standart = false,
		thermal = true,
		night = false,
		joblock = true,
		jobs = {
			"police",
			"ambulance"
		}
	},
	--[[["thermalcam"] = {
		default = "THERMAL",
		standart = false,
		thermal = true,
		night = false,
		joblock = false,
		jobs = {
		}
	},
	["nightgoggles"] = {
		default = "NIGHT",
		standart = false,
		thermal = false,
		night = true,
		joblock = false,
		jobs = {
		}
	}]]
}

--------------------------------------------------------------------
-- KEYS	|	https://docs.fivem.net/docs/game-references/controls/ --
--------------------------------------------------------------------
Config.KeyLeaveUI = 194 -- Backspace	|	Key to leave the Binoculars

Config.KeyZoomINOne = 77 -- W			|	Zoom in option 1
Config.KeyZoomINTwo = 15 -- SCROLL UP	|	Zoom in option 2

Config.KeyZoomOUTOne = 72 -- S				|	Zoom in option 2
Config.KeyZoomOUTTwo = 14 -- SCROLL DPWN	|	Zoom out option 2

Config.KeyLeft = 174 -- ARROW LEFT		|	Change Viewmode (STANDART, THERMAL, NIGHT) to the left
Config.KeyRight = 175 -- ARROw RIGHT	|	Change Viewmode (STANDART, THERMAL, NIGHT) to the right

---------------
-- Functions --
---------------

function DisableComponents(state)
	DisplayRadar(state)

	-- Disable your HUD
end

function ShouldBinocularsBeLocked()

	return false
end
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nextscripts.pro/binoculars/info-or-binoculars.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
