QBcore QBCore qb-forgeryoffice | Forging Legal Documents

CR LEAKS

FOUNDER
Mar 25, 2022
997
5,024
113
Credits
10,972
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!