[RELEASE] [ESX] Documents

I solved the porblem with relogs an server restarts for me on this way:

Find in client.lua

        if IsControlJustReleased(0, Config.MenuKey) and GetLastInputMethod(2) then
            Menu.hidden = false
            OpenMainMenu()

and replace with

        if IsControlJustReleased(0, Config.MenuKey) and GetLastInputMethod(2) then
            Menu.hidden = false
	    GetAllUserForms()
            OpenMainMenu()

works perfect for me. have a nice day!

Hi, I have the Problem that the script takes around 1-3 % Hitchtime on Server, normal is 0,2 % any suggestions to reduce it?

You have A Medical Clearance And Police Clearance?

you have a Police clearance and medical clearance

Do you have the QBCore version?

Am I doing something wrong here? I followed the instructions of renaming the document to ā€˜esx_documentsā€™ and changed the from fx_version 'adamant ā€™ to fx_version ā€˜ceruleanā€™. The problem is when I try to save a document the menu freezes and I had to restart the game. Also, when I was trying to import the sql thereā€™s an error saying " ā€˜Use essentialmodeā€™." When I renamed the folder ā€˜esx_documentsā€™ the menu shows up but not the actual document but when I changed the folderā€™s name to esx_documents, the menu shows up, the document shows up, but then it freezes after I hit submit. Iā€™m not good with codes and I need help.

Nice work

Hi Guys

I have a question. I wanna make this menu opened with a command not with a button.

How can I coding this?

Thank You

Paul

P.S. Sorry for my bad english;)

I have a problem. the menu does not open for me

Help? I think the problem is the version

1 Like

Check your console for errors press F8 and it will show you what error from what script and what line it is referring to.

1 Like

Mine is working fine

thank it was an error in html

For everyone who have the problem, that the documents wonā€™t show up after player relog or server restart then do the following!

Paste this at the bottom of client.lua

RegisterNetEvent('esx:playerLoaded')
AddEventHandler('esx:playerLoaded', function(playerData)
    if playerData then
        GetAllUserForms()
    end
    GetAllUserForms()
end)

Should be fixed now :slight_smile:

4 Likes

i have a problem when i open a document and then finish writing and signing i can no longer exit the menu the mouse is displayed all the time that one document is gone but the menu and the mouse is there ā€¦ help

2 Likes

Hi Community.

Is there meanwhile a fix for the problem that my can not insert an additional job.

Hello I have a problem. Maybe a file is corrupted. Every time i try to open my Saved Documents the script freeze. This happen only with Saved Documents the other options are just fine. So is there any chance if i delete the locale files of Saved Documents fix this ? And if i can do that, where i can find the locale files of the Saved Documents ?

2 Likes

Anyone know how to fix it?

Do you see in the error where it states itā€™s requesting URLs over http instead of https? Change those requests in the resource from http to https and the error should go away.

There are only 2 http data here but ā€˜<meta http-equivā€™ cannot be changed and the other is a link to the font

image