QBcore QBCore qb-forgeryoffice | Forging Legal Documents

CR LEAKS

CR LEAKS

Administrative
Joined
Mar 25, 2022
Messages
1,271
Reaction score
5,215
Points
113
Credits
21,189
Hi everyone! Today I’m releasing one of my free resources that’s been sitting in my github for a while. This resource will make you be able to forge some legal documents for yourself. It supports the item types of the QBCore but you can add any item with the metadata.

Preview
Features
  • Forge default document types
    1. ID Card
    2. Driver License
    3. Weapon License
    4. Lawyer Pass
  • Supports both qb-target or PolyZone
  • This resource uses the latest QBCore so needed items added automatically when resource starts but if you want to add the items to shared/items.lua, here you go.


  • Code:
    Please, Log in or Register to view codes content!


    Dependencies​


    Installation​

    • Download the script and put it in the [qb] directory.
    • Add the following line after your GetStashItems() function.exports('GetStashItems', GetStashItems)
    • Example


    • Code:
      Please, Log in or Register to view codes content!


      Configuration​

      Example


      Code:
      Please, Log in or Register to view codes content!

      How can I use forged weapon license with weapon shops?​

      We need to edit and add some functions to qb-shops/client/main.lua.
      1. First we need to comment/delete the line 81 in client/main.lua. After that we need to add “if licenseCheck() then” or “if licenseCheckWithPlayerData() then” line accordingly what you want.


      2. Code:
        Please, Log in or Register to view codes content!


        • Next we will add some helper functions above openShop() function.
          • Since these are local functions please beware these needs to be in the correct order and before the openShop() function.


          • Code:
            Please, Log in or Register to view codes content!


            Please, Log in or Register to view URLs content!

 
  • Like
Reactions: negrostreet7, alejandrillo12, santha and 1 other person
4,542Threads
10,549Messages
39,855Members
yfwpaxLatest member
Top