[SOLVED] Issue with esx_policejob

GTA V version LATEST
Up to date
Legit
Steam
Windows 10
Did you try to delete caches.xml and try again? YES
Error screenshot (if any)


What did you do to get this issue?
Open the “buy weapons” menu inside of the armory at the police office
What server did you get this issue on? It’s my server running latest version of both FiveM and ES(X)

For the last two things stated here, there’s just no error, only thing that happens is that in the server, while playing, the game freezes for less than half a second, a really really short period, and sometimes says something about the resource “esx_menu_default” taking too much time and to contact the server owner (which in this case is me) ← you can see this in the screen I’ve provided. I haven’t made any modification to the script “esx_policejob” other than something into the config file, do you have any idea on why that could be happening?

1 Like

Please browse /categories before you make a topic, this belongs in #server-development:essentialmode not #technical-support.

1 Like

Hi,

I had just modified the post, I was making it from that category but mistakenly posted it in the other one, my apologies.

Cheers!

1 Like

go to es_extended/shared/functions.lua and add this code

ESX.GetWeapon = function(weaponName)
    weaponName = string.upper(weaponName)
    local weapons = ESX.GetWeaponList()

    for i=1, #weapons, 1 do
        if weapons[i].name == weaponName then
            return i, weapons[i]
        end
    end
end
4 Likes

Hello,

it worked! Thank you so much! :heart:

Cheers

1 Like

where did you get that file(script) for police armory?

That is inside of policejob, would active in config…

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.