[Release] [ESX] Police Wanted

function OpenPoliceActionsMenu()
ESX.UI.Menu.CloseAll()

ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'police_actions', {
	title    = 'Police',
	align    = 'right',
	elements = {
		{label = _U('citizen_interaction'), value = 'citizen_interaction'},
		{label = _U('vehicle_interaction'), value = 'vehicle_interaction'},
		{label = _U('object_spawner'), value = 'object_spawner'}
		{label = "Wanted",               value = 'wanted_menu'}  -- This
		
	}}, function(data, menu)
		if data.current.value == 'wanted_menu' then		-- This
			TriggerEvent("esx_wanted:openWantedMenu")
		end									
		local elements = {
			{label = ('Cuff'),    value = 'ruskicuff'},
			{label = ('Uncuff'), value = 'handcuff'},
			{label = _U('drag'), value = 'drag'},
			{label = _U('id_card'), value = 'identity_card'},
			{label = _U('search'), value = 'body_search'},
			{label = _U('put_in_vehicle'), value = 'put_in_vehicle'},
			{label = _U('out_the_vehicle'), value = 'out_the_vehicle'},
			{label = _U('fine'), value = 'fine'},
			{label = "Community Service",	value = 'communityservice'},
			{label = _U('unpaid_bills'), value = 'unpaid_bills'},
			{label = 'Criminal Records',      value = 'criminalrecords'},
1 Like

So i found 1 Solution. If you use ESX then got to: esx_rpchat -> config:

Config        = {}
Config.Locale = 'de'

Config.EnableESXIdentity = false -- only turn this on if you are using esx_identity and want to use RP names
Config.OnlyFirstname     = false

And turn on EnableESXIdentity for the RP Name’s

Important!: You need ESX Identity! https://github.com/ESX-Org/esx_identity

I hope I could help
Best Regards :slight_smile:
Boomatisch

cheers mate i fixed it

{label = _U('object_spawner'), value = 'object_spawner'},         -- You hit one less (,)
		{label = "Wanted",               value = 'wanted_menu'}  -- This

= = Update = =
Add Features wanted
Temporarily closed
Temporarily closed

How did you fix it? Same problem.

His problem is that he missed one ( , )

Great job. Hope you open this again :grin:

I can give it to you, but I no longer update FIVEM

2 Likes

I’ll be so happy if you do that!

I want to thank you too

script works when using the command but having issues when using menu. it just freezes up. any suggestions? Havent changed anything besides adding it to policejob. menus show with no error. just freezes when setting wanted. any help?

I can’t find a way to download it.

I haven’t been in contact with FIVEM for a long time. Can I make a video for me?
Maybe I can try to solve it.

Thanks for the help, but i got it working. I just re-did everything and it worked. may have made a simple mistake somewhere when messing with the menu in policejob

Okay any other questions can ask me

how to dowload this scrips ?

I sent you a message three days ago, maybe you can see it inside

how to download this script?

This not a download :rofl:

1 Like