🆘
Documentation
  • 👋Welcome to T3 Dev
  • Resources
    • 🪄t3_lib
      • Installation
    • 🎴t3_tradingcards
      • Installation
      • Snippets
      • Adding new packs
      • Common Issues
    • 💯t3_grading
      • Installation
      • Snippets
    • 💰t3_comicrobbery
      • Installation
      • Snippets
    • 🚴‍♂️t3_deliveroo
      • Installation
    • 🛤️t3_trainjob
      • Installation
  • External Links
    • Tebex
    • Discord
    • GitHub
Powered by GitBook
On this page
  1. Resources
  2. t3_tradingcards

Installation

Last updated 5 months ago

*if using an inventory that isn't supported by t3_lib, please contact us for assistance*

  1. Install

  2. Download the latest version of t3_tradingcards from

  3. Drag t3_tradingcards to your server's resources folder and add ensure t3_tradingcards to your server.cfg

  4. Config In the config.lua you will find some options you need to set up. The commented sections at the end of each line will tell you the currently supported options for each setting. HTML Settings for the UI If you wish to use our , this will get the images centrally. Meaning you can delete all of the local images in the html folder. This was created to reduce the resource size when using multiple packs. You only need to define Tokens when you have uploaded a 'Private' pack to the repo. The commented token is for an example, you do not need to uncomment it.

    Config.HTML = {}
    Config.HTML.FileExtension = ".png" --Set this to the image type you want to use. Default: ".png"
    Config.HTML.UseRepo = true --If set to false it will use local images instead
    Config.HTML.Tokens = { --Only add tokens here if YOU have uploaded a private section in the repo
        --['pokemon'] = 'abcdefghijklmnop12345',
    }

    Selling Edit these options to your liking. You will need to chose the correct context menu you have installed, otherwise the menus will not work.

    Config.Selling = { --Config for selling. (Prices are defined per pack below)
        enableAlbums = true, --Set this to true to enable selling of COMPELTE albums.
        useExport = false, --used for player selling via a job, this disables npc/marker grading
        contextType = 'ox', --Define your context menu here. Supported menus 'nh_v1','zf','nh_v2','ox','qb'
        type = 'npc', --Supported types 'npc','marker'
        npc = {ped = 'ig_lifeinvad_02', loc = vector3(410.54,314.34,102.13), heading = 246.0},
        marker = {loc = vector3(412.03,315.11,102.13), drawDist = 8.0, type = 20, scale = vector3(0.25,0.25,0.25), color = {r=255,g=255,b=255,a=255}},
        textSettings = {color = {r=255,g=255,b=255,a=255}, font = 4},
    }

    Packs The standard Pokemon pack is set up ready to go. Please follow for a guide on how to add more.

  5. Add the InvHUDImages to your inventory's image folder

  6. Copy and paste the items from to your framework/inventory.

  7. Restart the server.

The script is now set up but please note you can't just spawn the items in using /giveitem They must be obtained using a method that supports metadata. Most shops will support this.

Note for qb-inventory users. Images and labels will not change using the default qb-inventory. We have a fix for this on GitHub with our of qb-inventory.

🎴
t3_lib
keymaster
repo
Adding new packs
snippets
fork