πŸ‘†Interaction Locations

  • Adding more interaction locations is very simple via the config.lua file

  • Some target events require args being passed usually the ShopName and the StorageType (for stash targets only)

  • To add another target zone simply add your ShopName as they key and then customize the values to suit your server needs in Config.InteractionLocations

  • To disable a specific boxzone just set Enabled to false


Config.InteractionLocations = {
    ['Example Shop'] = { --Example Bar
        { 
            Enabled = true,
            Name = "example_crafting",
            Location = vector3(-1400.09, -598.18, 30.5),
            Radius = 0.75,
            Distance = 2.0,
            Icon = 'fa-solid fa-glass-martini',
            Label = 'Open Crafting Menu',
            Job = Config.CoreSettings.Jobs['Example Shop'].name, 
            Event = 'lusty94_weedshops:client:OpenCrafting',
            BarName = 'Example Bar', --[[ βœ… Make Sure To Pass shopName ]]
        },
        {
            Enabled = true,
            Name = "example_drinksFridge",
            Location = vector3(-1404.13, -598.71, 29.85),
            Radius = 0.75,
            Distance = 2.0,
            Icon = 'fa-solid fa-briefcase',
            Label = 'Open Storage Fridge',
            Job = Config.CoreSettings.Jobs['Example Shop'].name,
            Event = 'lusty94_weedshops:client:OpenStorage',
            args = { barName = "Example Bar", storageType = "StorageFridge" }, --[[ βœ… Make Sure To Pass shopName and the storageType you define in Config.CoreSettings.Stashes ]]
        },                
        { --this event doesnt need any args passing
            Enabled = true,
            Name = "example_bossMenu",
            Location = vector3(-1370.25, -625.7, 30.12),
            Radius = 0.75,
            Distance = 2.0,
            Icon = 'fa-solid fa-briefcase',
            Label = 'Open Management Menu',
            Job = Config.CoreSettings.Jobs['Example Shop'].name,
            Event = Config.CoreSettings.EventNames.BossMenu, -- this doesnt need any args passing as it directly triggers the event you set
        },
        { 
            Enabled = true,
            Name = "example_bossStash",     
            Location = vector3(-1366.22, -624.67, 30.5),    
            Radius = 0.75, 
            Distance = 2.0,   
            Icon = 'fa-solid fa-briefcase',         
            Label = 'Open Boss Storage',      
            Job = Config.CoreSettings.Jobs['Example Shop'].name,
            Event = 'lusty94_weedshops:client:OpenStorage',
            args = { barName = "Example Bar", storageType = "BossStash" },  --[[ βœ… Make Sure To Pass shopName For storage system  THIS MUST MATCH THE KEY AND THE STORAGE TYPE YOU DEFINE IN CONFIG.CORESETTINGS.STASHES!]]
        },
    },
}

  • The target events below require arguments passed through the target to the event for various features and security measures.

  • It is vital you understand what zone events requires arguments passed. Without these arguments the features may not work as intended leading to script issues or errors

  • The same logic above with arguments being passed also applies to some props in Config.Props


Crafting

  • Requires ShopName being passed


Storages

  • Requires args shopName and storageType being passed

  • storageType is the storage type you define in Config.CoreSettings.Stashes

  • This applies to both storages and boss storages


Supplies

  • Requires args shopName being passed


Payment

  • Requires args shopName passed


CCTV

  • Requires args shopName passed - this particular example showcases a prop using the cctv menu but you can set this to a static target zone if you wish, just make sure to pass the correct shopName

Last updated