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
Boomatisch
_ivan
May 12, 2020, 10:50pm
27
{label = _U('object_spawner'), value = 'object_spawner'}, -- You hit one less (,)
{label = "Wanted", value = 'wanted_menu'} -- This
_ivan
May 17, 2020, 4:27am
28
= = Update = =
Add Features wanted
Temporarily closed
Temporarily closed
How did you fix it? Same problem.
_ivan
June 13, 2020, 10:10am
30
His problem is that he missed one ( , )
Great job. Hope you open this again
_ivan
December 23, 2020, 7:48pm
32
I can give it to you, but I no longer update FIVEM
2 Likes
Iâll be so happy if you do that!
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.
_ivan
February 27, 2021, 5:46pm
37
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
_ivan
February 28, 2021, 6:52pm
40
Okay any other questions can ask me
how to dowload this scrips ?
_ivan
March 3, 2021, 8:15pm
42
I sent you a message three days ago, maybe you can see it inside
how to download this script?