Join CodeStudio: https://discord.gg/62jqEKz8Sb
Edited Version of esx_documents to support qbcore and work with qb-menu
Forum : https://forum.cfx.re/t/free-qb-documents-edited-version-of-esx-documents/4917689
Introducing Documents, This script provides creation, signing, copying and displaying of documents to enrich players' roleplaying experience. Basically you have two type of documents: Public documents & Job specific documents
- Import documents.sql in your database
- Configure config according to your needs
- Add documents into qbcore/shared.lua if u want to use documents as an item
Create
Sign
Show
Give Copy
Delete
Public documents
Job specific documents
Custom documents creation
Language Localization
/docs - To open Documents
QBCore qb-menu
--Open menu from another resource with events
TriggerEvent('hhfw:documents:open')
0.00 ms in a quiet state 0.00 ms in an active state
Each document is assigned to a specific category. This category can be public for everyone or a job name to be accessible only by citizens in that specific job. Each document consists of a headerTitle, headerSubtitle and elements. headerTitle and headerSubtitle are self explanatory. Elements are the fields which a user fills in, in a document. An element, so far, can either be input or textarea. Each element has the following properties:
- can_be_empty : true/false which means a user can submit the form without filling that specific element
- can_be_edited : true/false which means a user can edit this element's content. Usefull for documents with static values.
So let's see an example. Let's say we want to create a witness testimony document. This can be filled by anyone so we put it in the public section. Also we want the citizen to fill in the date of occurence and his testimony. Hence we have:
We were known as HH Framework and recently we have changed our name to Code Studio. Our Old Scripts are also Available.