Error script PoliceJOb

Hello, I have an error on the policejob script I present this SCRIPT ERROR: @esx_policejob/config.lua:27: attempt to index a nil value (global ‘ESX’)
[script:esx_policejob] > fn (@esx_policejob/config.lua:27)

configu.lua : lua 1-29 : Config = {}

Config.DrawDistance = 10.0 – How close do you need to be for the markers to be drawn (in GTA units).
Config.MarkerType = {Cloakrooms = 20, Armories = 21, BossActions = 22, Vehicles = 36, Helicopters = 34}
Config.MarkerSize = {x = 1.5, y = 1.5, z = 0.5}
Config.MarkerColor = {r = 50, g = 50, b = 204}

Config.EnablePlayerManagement = true – Enable if you want society managing.
Config.EnableArmoryManagement = false
Config.EnableESXIdentity = true – Enable if you’re using esx_identity.
Config.EnableESXOptionalneeds = false – Enable if you’re using esx_optionalneeds
Config.EnableLicenses = false – Enable if you’re using esx_license.

Config.EnableHandcuffTimer = true – Enable handcuff timer? will unrestrain player after the time ends.
Config.HandcuffTimer = 10 * 60000 – 10 minutes.

Config.EnableJobBlip = false – Enable blips for cops on duty, requires esx_society.
Config.EnableCustomPeds = false – Enable custom peds in cloak room? See Config.CustomPeds below to customize peds.

Config.EnableESXService = false – Enable esx service?
Config.MaxInService = -1 – How many people can be in service at once? Set as -1 to have no limit

Config.EnableFinePresets = false – Set to false to use a custom input fields for fines

Config.Locale = GetConvar(‘esx:locale’, ‘en’)

Config.OxInventory = ESX.GetConfig().OxInventory

Config.PoliceStations = {

config.lua (8.8 KB)
main.lua (14.1 KB)

When I restart it on Five M here is the error screen

could you help me thank you very much

ESX is undefined!
Try to put on top ESX = exports['es_extended']:getSharedObject()