Lusty94
Tebex StoreSupport DiscordGitHubCFX Profile
  • 👋 Lusty94 Scripts
  • 💵Store Discounts
  • 📥 Script Installation
  • 🤝Supported Scripts
  • 📜Paid Resouces
    • 🍻Bars
      • 🔧Changelogs
      • 💼 Jobs
      • 📦Stashes
      • 👁️Blips
      • 🧩Props
      • 👆Interaction Locations
      • 📸CCTV
      • 🍳Recipes
      • 📬Supplies
      • 🥦Ingredients
    • 🍁Weed Shops
      • 🔧Changelogs
      • 💼 Jobs
      • 📦Stashes
      • 👁️Blips
      • 🧩Props
      • 👆Interaction Locations
      • 🍃Picking
      • 📸CCTV
      • 🍳Recipes
      • 📬Supplies
      • 🥦Ingredients
      • 🚬Consumables
    • 💲Money Wash
    • 💰Pawn Shop
      • 🔧Changelogs
      • 🛒Pawnshop Locations
    • 📲Drug Sales
      • 🔧Changelogs
      • 📲Selling
      • 💻Default Configuration
    • 🚗Chop Shop
      • 🔧Changelogs
      • 📅SQL
      • 🗣️Commands
      • 📋Reputation
      • 💰Selling
      • 🚗Chop Shops
      • 💻Default Configuration
    • 🚘Vehicle Shop
      • 🔧Changelogs
      • 📅SQL
      • 🗣️Commands
      • 📥Database
      • 🚘Vehicle Shops
      • 💻Default Configuration
    • 🚗Rental
    • 🚙Towing
    • 🍲Restaurants
    • 💊Drugs
    • 🍁Weed
  • 📜Free Resources
    • 🛒Shops
      • 🔧Changelogs
      • 🛒Adding Shops
      • 🪛Configuration
    • 🖥️Boss Menu
      • 🔧Changelogs
      • 💻Adding Job Locations
    • ✅Green Zones
      • 🔧Changelogs
      • 📌Adding Zones
Powered by GitBook
  1. Paid Resouces
  2. Bars

Props

Adding More PROPS

  • Adding more props that bars can use is very simple via the config.lua file

  • To add another prop that a bar can use you must pass the BarName as the key and then customize the values to suit your needs

  • To add another prop simply add your BarName as they key and then customize the values to suit your server needs in Config.Props please note some target interactions for props and require args passing with the target


Config.Props = {
    ['Example Bar'] = {
        { 
            Model = 'bkr_prop_fakeid_clipboard_01a', -- prop model
            Coords = vector4(-1404.56, -600.13, 31.36, 110.13), -- props spawn coords
            Icon = 'fa-solid fa-car', -- icon for target interaction
            Label = 'Toggle Duty', -- label for target interaction
            Job = Config.CoreSettings.Jobs['Example Bar'].name, -- job set in Config.CoreSettings.Jobs for target interaction
            Distance = 3.0, -- distance for target interaction
            Event = 'lusty94_bars:client:ToggleDuty', -- event name triggered 
        },
        { 
            Model = 'prop_crate_11e', -- prop model
            Coords = vector4(-1400.98, -603.14, 31.37, 120.67), -- props spawn coords
            Icon = 'fa-solid fa-box', -- icon for target interaction
            Label = 'Get House Beer', -- label for target interaction
            Job = Config.CoreSettings.Jobs['Example Bar'].name, -- job set in Config.CoreSettings.Jobs for target interaction
            Distance = 3.0, -- distance for target interaction
            Event = 'lusty94_bars:client:GetHouseBeer', -- event name triggered 
            args = { barName = 'Example Bar' }, --[[ ✅ Make Sure To Pass barName For house beer input  THIS MUST MATCH THE KEY!]]
        },
        { 
            Model = 'sf_prop_sf_bowl_fruit_01a', -- prop model
            Coords = vector4(-1399.06, -601.54, 31.36, 249.36), -- props spawn coords
            Icon = 'fa-solid fa-box', -- icon for target interaction
            Label = 'Get Ingredients', -- label for target interaction
            Job = Config.CoreSettings.Jobs['Example Bar'].name, -- job set in Config.CoreSettings.Jobs for target interaction 
            Distance = 3.0, -- distance for target interaction
            Event = 'lusty94_bars:client:GetIngredients', -- event name triggered 
            args = { barName = 'Example Bar' }, --[[ ✅ Make Sure To Pass barName For ingredients menu  THIS MUST MATCH THE KEY!]]
        },
    },
}

Some target locations for props and box zones will need arguments passing with them for various events to determine which bar is accessing that function

⚠️ The BarName args must match the BarName key

--this is a target example for opening the ingredients menu which needs the barName argument passed the same applies to the supplies menu and various other target zones
{ 
    Model = 'sf_prop_sf_bowl_fruit_01a', -- prop model
    Coords = vector4(-1399.06, -601.54, 31.36, 249.36), -- props spawn coords
    Icon = 'fa-solid fa-box', -- icon for target interaction
    Label = 'Get Ingredients', -- label for target interaction
    Job = Config.CoreSettings.Jobs['Example Bar'].name, -- job set in Config.CoreSettings.Jobs for target interaction  
    Distance = 3.0, -- distance for target interaction
    Event = 'lusty94_bars:client:GetIngredients', -- event name triggered 
    args = { barName = 'Example Bar' }, --[[✅ Make Sure To Pass barName THIS MUST MATCH THE KEY!]]
},

Last updated 3 months ago

📜
🍻
🧩
Page cover image