Page cover

🎯Interaction Locations

  • You can define target locations for various events in the interactionLocations.lua file

  • The key is the pharmacy shop name

  • The coords must be vector3

  • The radius is the zone size

  • The distance is the target interaction distance (never set this higher than the MaxDistance allowed for security checks)

  • Some target locations require the argument: locationName passing. This is the pharmacy shop name key you are trying to access

  • The Job key must match the pharmacy shop name in Config.CoreSettings.Jobs

  • Stashes require the args storageType passing and the storage type must match the storage type defined in Config.CoreSettings.Stashes

  • Crafting requires the args craftType passing and the available types which are supplies | medical

  • These relate to the relevant crafting tables in crafting.lua | suppliesCrafting.lua

Config.InteractionLocations = {
    ['Pillbox Hospital'] = { --Pillbox Hospital  -- the key is the location name and must match throughout
        { 
            enabled = true, -- set to true to enable this zone
            debug = true, -- debug this zone
            Name = "pillboxhospital_duty",
            Location = vector3(308.87, -569.99, 43.65),
            Radius = 0.35, Distance = 3.0,
            Icon = 'fa-solid fa-clipboard',
            Label = 'Toggle Duty',
            Job = Config.CoreSettings.Jobs['Pillbox Hospital'].name, 
            Event = 'lusty94_pharmacy:client:ToggleDuty',
        },
        {
            enabled = true, -- set to true to enable this zone
            debug = true, -- debug this zone
            Name = "pillboxhospital_suppliescrafting",
            Location = vector3(308.91, -561.41, 43.5),
            Radius = 0.5, Distance = 3.0,
            Icon = 'fa-solid fa-hand-point-up',
            Label = 'Craft Supplies',
            Job = Config.CoreSettings.Jobs['Pillbox Hospital'].name,
            Event = 'lusty94_pharmacy:client:OpenCraftingMenu',
            args = { locationName = 'Pillbox Hospital', craftType = 'supplies' }, -- βœ… Make Sure To Pass locationName and craftType
        },
        {
            enabled = true, -- set to true to enable this zone
            debug = true, -- debug this zone
            Name = "pillboxhospital_medicalcrafting",
            Location = vector3(311.72, -565.9, 43.5),
            Radius = 0.5, Distance = 3.0,
            Icon = 'fa-solid fa-hand-point-up',
            Label = 'Craft Medical Items',
            Job = Config.CoreSettings.Jobs['Pillbox Hospital'].name,
            Event = 'lusty94_pharmacy:client:OpenCraftingMenu',
            args = { locationName = 'Pillbox Hospital', craftType = 'medical' }, -- βœ… Make Sure To Pass locationName and craftType
        },
        {
            enabled = true, -- set to true to enable this zone
            debug = true, -- debug this zone
            Name = "pillboxhospital_supplies",
            Location = vector3(310.66, -568.58, 43.5),
            Radius = 0.5, Distance = 3.0,
            Icon = 'fa-solid fa-hand-point-up',
            Label = 'Get Supplies',
            Job = Config.CoreSettings.Jobs['Pillbox Hospital'].name,
            Event = 'lusty94_pharmacy:client:GetSupplies',
            args = { locationName = 'Pillbox Hospital' }, --βœ… Make Sure To Pass locationName For supplies menu
        },
        { 
            enabled = true, -- set to true to enable this zone
            debug = true, -- debug this zone
            Name = "pillboxhospital_payment1",
            Location = vector3(313.18, -593.88, 43.35),
            Radius = 0.5, Distance = 3.0,
            Icon = 'fa-solid fa-hand-point-up',
            Label = 'Charge Customer',
            Job = Config.CoreSettings.Jobs['Pillbox Hospital'].name,
            Event = 'lusty94_pharmacy:client:BillPlayer',
            args = { locationName = "Pillbox Hospital" },  --βœ… Make Sure To Pass locationName For billing menu
        },
        { 
            enabled = true, -- set to true to enable this zone
            debug = true, -- debug this zone
            Name = "pillboxhospital_bossStash",     
            Location = vector3(308.81, -562.39, 43.5),    
            Radius = 0.5, Distance = 3.0,  
            Icon = 'fa-solid fa-hand-point-up',         
            Label = 'Open Boss Storage',      
            Job = Config.CoreSettings.Jobs['Pillbox Hospital'].name,
            Event = 'lusty94_pharmacy:client:OpenStorage',
            args = { locationName = "Pillbox Hospital", storageType = "BossStash" }, --βœ… Make Sure To Pass locationName and storagetype - THIS MUST MATCH THE KEY AND THE STORAGE TYPE YOU DEFINE IN CONFIG.CORESETTINGS.STASHES!
        },
        { 
            enabled = true, -- set to true to enable this zone
            debug = true, -- debug this zone
            Name = "pillboxhospital_collectionTray1",     
            Location = vector3(312.19, -593.58, 43.0),    
            Radius = 0.5, Distance = 3.0, 
            Icon = 'fa-solid fa-hand-point-up',         
            Label = 'Open Collection Tray',      
            Job = nil,
            Event = 'lusty94_pharmacy:client:OpenTray',
            args = { locationName = "Pillbox Hospital", storageType = "CollectionTray1" }, --βœ… Make Sure To Pass locationName and storagetype - THIS MUST MATCH THE KEY AND THE STORAGE TYPE YOU DEFINE IN CONFIG.CORESETTINGS.STASHES!
        },
        { 
            enabled = true, -- set to true to enable this zone
            debug = true, -- debug this zone
            Name = "pillboxhospital_storageShelf1",     
            Location = vector3(311.88, -564.12, 43.5),    
            Radius = 0.5, Distance = 3.0,
            Icon = 'fa-solid fa-hand-point-up',         
            Label = 'Open Storage Shelf',      
            Job = Config.CoreSettings.Jobs['Pillbox Hospital'].name,
            Event = 'lusty94_pharmacy:client:OpenStorage',
            args = { locationName = "Pillbox Hospital", storageType = "StorageShelf1" },  --βœ… Make Sure To Pass locationName and storagetype - THIS MUST MATCH THE KEY AND THE STORAGE TYPE YOU DEFINE IN CONFIG.CORESETTINGS.STASHES!
        },
    },
}

Last updated