Is it possible to enable NPC police/EMS until I have people to support those roles?

Just starting a server. I want to take my time as I have a TON to learn about how to actually support the back-end of the server before it’s public. OBV in the end I want RL people playing RP to support the Police and EMS, Mechanics etc. and my build has those “jobs” in Work. But for now, I want to have police and EMS functions performed by NPC’s and the garages to just allow me to go buy upgrades without the need for a mechanic.
How would one go about enabling the NPC’s for this for now and then switching it to player managed later?

Thanks!!! :slight_smile:

1 Like

Here is the current esx_policejob config.lua if this helps.

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 = false – Enable if you want society managing.
Config.EnableArmoryManagement = true
Config.EnableESXIdentity = true – Enable if you’re using esx_identity.
Config.EnableLicenses = true – 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 = true – 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 much people can be in service at once?

Config.Locale = ‘es’

Config.PoliceStations = {

LSPD = {

	Blip = {
		Coords  = vector3(425.1, -979.5, 30.7),
		Sprite  = 60,
		Display = 4,
		Scale   = 1.2,
		Colour  = 29
	},

	Cloakrooms = {
		vector3(473.51, -988.59, 25.73)
	},

	Armories = {
		vector3(485.55, -1005.82, 25.73)
	},

	Vehicles = {
		{
			Spawner = vector3(454.6, -1017.4, 28.4),
			InsideShop = vector3(228.5, -993.5, -99.5),
			SpawnPoints = {
				{coords = vector3(438.4, -1018.3, 27.7), heading = 90.0, radius = 6.0},
				{coords = vector3(441.0, -1024.2, 28.3), heading = 90.0, radius = 6.0},
				{coords = vector3(453.5, -1022.2, 28.0), heading = 90.0, radius = 6.0},
				{coords = vector3(450.9, -1016.5, 28.1), heading = 90.0, radius = 6.0}
			}
		},

		{
			Spawner = vector3(473.3, -1018.8, 28.0),
			InsideShop = vector3(228.5, -993.5, -99.0),
			SpawnPoints = {
				{coords = vector3(475.9, -1021.6, 28.0), heading = 276.1, radius = 6.0},
				{coords = vector3(484.1, -1023.1, 27.5), heading = 302.5, radius = 6.0}
			}
		}
	},

	Helicopters = {
		{
			Spawner = vector3(461.1, -981.5, 43.6),
			InsideShop = vector3(477.0, -1106.4, 43.0),
			SpawnPoints = {
				{coords = vector3(449.5, -981.2, 43.6), heading = 92.6, radius = 10.0}
			}
		}
	},

	BossActions = {
		vector3(474.36, -1006.77, 30.71)
	}

}

}

Config.AuthorizedWeapons = {
recruit = {
{weapon = ‘WEAPON_APPISTOL’, components = {0, 0, 1000, 4000, nil}, price = 10},
{weapon = ‘WEAPON_NIGHTSTICK’, price = 0},
{weapon = ‘WEAPON_STUNGUN’, price = 1500},
{weapon = ‘WEAPON_FLASHLIGHT’, price = 80}
},

officer = {
	{weapon = 'WEAPON_APPISTOL', components = {0, 0, 1000, 4000, nil}, price = 10},
	{weapon = 'WEAPON_ADVANCEDRIFLE', components = {0, 6000, 1000, 4000, 8000, nil}, price = 50},
	{weapon = 'WEAPON_NIGHTSTICK', price = 0},
	{weapon = 'WEAPON_STUNGUN', price = 500},
	{weapon = 'WEAPON_FLASHLIGHT', price = 0}
},

sergeant = {
	{weapon = 'WEAPON_APPISTOL', components = {0, 0, 1000, 4000, nil}, price = 10},
	{weapon = 'WEAPON_ADVANCEDRIFLE', components = {0, 6000, 1000, 4000, 8000, nil}, price = 50},
	{weapon = 'WEAPON_PUMPSHOTGUN', components = {2000, 6000, nil}, price = 700},
	{weapon = 'WEAPON_NIGHTSTICK', price = 0},
	{weapon = 'WEAPON_STUNGUN', price = 500},
	{weapon = 'WEAPON_FLASHLIGHT', price = 0}
},

lieutenant = {
	{weapon = 'WEAPON_APPISTOL', components = {0, 0, 1000, 4000, nil}, price = 10},
	{weapon = 'WEAPON_ADVANCEDRIFLE', components = {0, 6000, 1000, 4000, 8000, nil}, price = 50},
	{weapon = 'WEAPON_PUMPSHOTGUN', components = {2000, 6000, nil}, price = 700},
	{weapon = 'WEAPON_NIGHTSTICK', price = 0},
	{weapon = 'WEAPON_STUNGUN', price = 500},
	{weapon = 'WEAPON_FLASHLIGHT', price = 0}
},

boss = {
	{weapon = 'WEAPON_APPISTOL', components = {0, 0, 1000, 4000, nil}, price = 1000},
	{weapon = 'WEAPON_ADVANCEDRIFLE', components = {0, 6000, 1000, 4000, 8000, nil}, price = 50},
	{weapon = 'WEAPON_PUMPSHOTGUN', components = {2000, 6000, nil}, price = 700},
	{weapon = 'WEAPON_NIGHTSTICK', price = 0},
	{weapon = 'WEAPON_STUNGUN', price = 500},
	{weapon = 'WEAPON_FLASHLIGHT', price = 0}
}

}

Config.AuthorizedVehicles = {
car = {
recruit = {
{model = ‘policeb’, price = 100},
{model = ‘police3’, price = 100}
},

	officer = {
		{model = 'policeb', price = 100},
		{model = 'police3', price = 100}
	},

	sergeant = {
		{model = 'police3', price = 100},
		{model = 'polschafter3', price = 100},
		{model = 'fbi2', price = 100},
		{model = 'policeb', price = 100}
	},

	lieutenant = {
		{model = 'policeb', price = 100},
		{model = 'police3', price = 100},
		{model = 'fbi2', price = 100},
		{model = 'polschafter3', price = 100}
	},

	boss = {
		{model = 'policeb', price = 100},
		{model = 'police3', price = 100},
	    {model = 'fbi2', price = 100},
		{model = 'polschafter3', price = 100}
	}
},

helicopter = {
	recruit = {},

	officer = {},

	sergeant = {},

	lieutenant = {
		{model = 'polmav', props = {modLivery = 0}, price = 100}
	},

	boss = {
		{model = 'polmav', props = {modLivery = 0}, price = 100}
	}
}

}

Config.CustomPeds = {
shared = {
{label = ‘Sheriff Ped’, maleModel = ‘s_m_y_sheriff_01’, femaleModel = ‘s_f_y_sheriff_01’},
{label = ‘Police Ped’, maleModel = ‘s_m_y_cop_01’, femaleModel = ‘s_f_y_cop_01’}
},

recruit = {},

officer = {},

sergeant = {},

lieutenant = {},

boss = {
	{label = 'SWAT Ped', maleModel = 's_m_y_swat_01', femaleModel = 's_m_y_swat_01'}
}

}

– CHECK SKINCHANGER CLIENT MAIN.LUA for matching elements
Config.Uniforms = {
recruit = {
male = {
tshirt_1 = 59, tshirt_2 = 1,
torso_1 = 55, torso_2 = 0,
decals_1 = 0, decals_2 = 0,
arms = 41,
pants_1 = 25, pants_2 = 0,
shoes_1 = 25, shoes_2 = 0,
helmet_1 = 46, helmet_2 = 0,
chain_1 = 0, chain_2 = 0,
ears_1 = 2, ears_2 = 0
},
female = {
tshirt_1 = 36, tshirt_2 = 1,
torso_1 = 48, torso_2 = 0,
decals_1 = 0, decals_2 = 0,
arms = 44,
pants_1 = 34, pants_2 = 0,
shoes_1 = 27, shoes_2 = 0,
helmet_1 = 45, helmet_2 = 0,
chain_1 = 0, chain_2 = 0,
ears_1 = 2, ears_2 = 0
}
},

officer = {
	male = {
		tshirt_1 = 58,  tshirt_2 = 0,
		torso_1 = 55,   torso_2 = 0,
		decals_1 = 0,   decals_2 = 0,
		arms = 41,
		pants_1 = 25,   pants_2 = 0,
		shoes_1 = 25,   shoes_2 = 0,
		helmet_1 = -1,  helmet_2 = 0,
		chain_1 = 0,    chain_2 = 0,
		ears_1 = 2,     ears_2 = 0
	},
	female = {
		tshirt_1 = 35,  tshirt_2 = 0,
		torso_1 = 48,   torso_2 = 0,
		decals_1 = 0,   decals_2 = 0,
		arms = 44,
		pants_1 = 34,   pants_2 = 0,
		shoes_1 = 27,   shoes_2 = 0,
		helmet_1 = -1,  helmet_2 = 0,
		chain_1 = 0,    chain_2 = 0,
		ears_1 = 2,     ears_2 = 0
	}
},

sergeant = {
	male = {
		tshirt_1 = 58,  tshirt_2 = 0,
		torso_1 = 55,   torso_2 = 0,
		decals_1 = 8,   decals_2 = 1,
		arms = 41,
		pants_1 = 25,   pants_2 = 0,
		shoes_1 = 25,   shoes_2 = 0,
		helmet_1 = -1,  helmet_2 = 0,
		chain_1 = 0,    chain_2 = 0,
		ears_1 = 2,     ears_2 = 0
	},
	female = {
		tshirt_1 = 35,  tshirt_2 = 0,
		torso_1 = 48,   torso_2 = 0,
		decals_1 = 7,   decals_2 = 1,
		arms = 44,
		pants_1 = 34,   pants_2 = 0,
		shoes_1 = 27,   shoes_2 = 0,
		helmet_1 = -1,  helmet_2 = 0,
		chain_1 = 0,    chain_2 = 0,
		ears_1 = 2,     ears_2 = 0
	}
},

lieutenant = {
	male = {
		tshirt_1 = 58,  tshirt_2 = 0,
		torso_1 = 55,   torso_2 = 0,
		decals_1 = 8,   decals_2 = 2,
		arms = 41,
		pants_1 = 25,   pants_2 = 0,
		shoes_1 = 25,   shoes_2 = 0,
		helmet_1 = -1,  helmet_2 = 0,
		chain_1 = 0,    chain_2 = 0,
		ears_1 = 2,     ears_2 = 0
	},
	female = {
		tshirt_1 = 35,  tshirt_2 = 0,
		torso_1 = 48,   torso_2 = 0,
		decals_1 = 7,   decals_2 = 2,
		arms = 44,
		pants_1 = 34,   pants_2 = 0,
		shoes_1 = 27,   shoes_2 = 0,
		helmet_1 = -1,  helmet_2 = 0,
		chain_1 = 0,    chain_2 = 0,
		ears_1 = 2,     ears_2 = 0
	}
},

boss = {
	male = {
		tshirt_1 = 58,  tshirt_2 = 0,
		torso_1 = 55,   torso_2 = 0,
		decals_1 = 8,   decals_2 = 3,
		arms = 41,
		pants_1 = 25,   pants_2 = 0,
		shoes_1 = 25,   shoes_2 = 0,
		helmet_1 = -1,  helmet_2 = 0,
		chain_1 = 0,    chain_2 = 0,
		ears_1 = 2,     ears_2 = 0
	},
	female = {
		tshirt_1 = 35,  tshirt_2 = 0,
		torso_1 = 48,   torso_2 = 0,
		decals_1 = 7,   decals_2 = 3,
		arms = 44,
		pants_1 = 34,   pants_2 = 0,
		shoes_1 = 27,   shoes_2 = 0,
		helmet_1 = -1,  helmet_2 = 0,
		chain_1 = 0,    chain_2 = 0,
		ears_1 = 2,     ears_2 = 0
	}
},

bullet_wear = {
	male = {
		bproof_1 = 11,  bproof_2 = 1
	},
	female = {
		bproof_1 = 13,  bproof_2 = 1
	}
},

gilet_wear = {
	male = {
		tshirt_1 = 59,  tshirt_2 = 1
	},
	female = {
		tshirt_1 = 36,  tshirt_2 = 1
	}
}

}

Ok, so I guess this isn’t really a thing from what I’m reading and i "can’t have AI police in my city? So, if I want police on a FiveM server then I best get someone to play that role quick I guess. Hmmm

I want the same but i can’t even find the correct file which disables the wanted level. The old way of changing the es_extended config isn’t working anymore, so it must be somewhere else. Once you find that you can make a script that does what you are looking for. There is actually someone on this forum trying to make a script with this feature. look here

1 Like