πŸ†˜
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_grading

Snippets

Exports

Enable the Config.Grading.useExport option to disable NPC/marker selling, allowing you to manage permissions. Here’s an example for ox_target:

exports['ox_target']:addBoxZone({
    coords = vec3(442.5363, -1017.666, 28.85637),
    size = vec3(3, 3, 3),
    options = {
        {
            name = 'collectCards',
            groups = 'comic',
            icon = 'fa-solid fa-hand-holding',
            label = 'Collect Graded Cards',
            canInteract = function()
                return exports["t3_tradingcards"]:gradedCardsToCollect()
            end,
            onSelect = function()
                exports['t3_tradingcards']:collectGradedCards()
            end
        },
        {
            name = 'gradingMenu',
            groups = 'comic',
            icon = 'fa-solid fa-star-half-stroke',
            label = 'Open Grading Menu',
            canInteract = function()
                return not exports["t3_tradingcards"]:gradedCardsToCollect()
            end,
            onSelect = function()
                exports['t3_tradingcards']:gradingMenu()
            end
        }
    }
})

Last updated 5 months ago

πŸ’―