Code Studio
Tebex DiscordYoutubeGitHub
  • 🌟Welcome to Code Studio
  • Overview
    • 💡What we do
  • 📜Our Scripts
    • Ultimate License System
      • 🛠️Setup
    • Bodycam & Dashcam
      • 🛠️Setup
    • Weather Management
      • 🛠️Setup
    • Car Radio - Car Play Pro
      • 🛠️Setup
    • Modern HUD
      • 🛠️Setup
    • Modern Shops
      • 🛠️Setup
    • Advanced Radio
      • 🛠️Setup
    • Modern ID Card
      • 🛠️Setup
    • Billing Invoice System
      • 🛠️Setup
    • Radial Menu
      • 🛠️Setup
    • Death Screen
      • 🛠️Setup
    • Boss & Gang Menu
      • 🛠️Setup
    • Advanced Notification
      • 🛠️Setup
    • Fingerprint Scanner
      • 🛠️Setup
    • Drunk System + Alcohol Tester
      • 🛠️Setup
    • Advanced Job + ID Card
      • 🛠️Setup
    • Drug Selling + Level Based
      • 🛠️Setup
    • Multi Job System
      • 🛠️Setup
    • Discord2FiveM [V2]
      • 🛠️Setup
    • Modern Radio
      • 🛠️Setup
    • Grappling Gun
      • ♦️Standalone
  • ⚠️FiveM Escrow Protection FAQ
    • Home
    • Error parsing script ... <\1>
    • Failed to verify protected resource
    • You lack the required entitlement
    • What to do if nothing is fixing the errors
Powered by GitBook
On this page
  • Detailed Config is Provided with the script with detailed information:
  • Events
  • Usages
  • Additional detailed guidance can be found in the config itself. If you need further assistance, please feel free to contact us on Discord.
  1. Our Scripts
  2. Modern Shops

Setup

This is a detailed setup guide for Modern Shops. If you have any questions before making a purchase, you can contact us on Discord

PreviousModern ShopsNextAdvanced Radio

Last updated 1 year ago

Detailed Config is Provided with the script with detailed information:

Supports: QBCore, ESX, Custom Frameworks

Events

  • Open Shops
    TriggerEvent('cs:shops:openUI', 1) --Shop Number from Config
  • Restock All Items
    TriggerServerEvent('cs:shops:reStock')
  • Modify Single Item Stock
    TriggerClientEvent('cs:shop:updateStock', -1, category, itemName, updatedStock)

Usages

Creating Items

['tosti'] = {    --Item
    itemName = "Tosti",     --Item Label
    itemQuantity = 50,      --Item Available Stock
    itemPrice = 2,          --Item Price
    itemInfo = "Delicious grilled sandwich",    --Item Description
    itemMetaData = {},      --Supports Item Meta Data
    requiredJob = {        --Supports Multiple Jobs Restriction with job grades
        ['police'] = {1,2},
        ['taxi'] = {1},
    },
    requiredGang = {--Supports Multiple Gangs Restriction with gang grades [*Only QB]
        ['ballas'] = {1,2},
        ['lostmc'] = {1},
    },      
    requiredLicense = {'weapon', 'driver'}    --Supports License Check
}

Creating Shops

[1] = { --Shop Number
    ShopName = 'Weapon Store',  --Shop Name
    Category = {        --Category with Order
        [1] = 'weapons',
        [2] = 'ammo'
    },
    Locations = {       --You Can Add Multiple Locations
        vector4(-661.96, -933.53, 21.83, 177.05),
        vector4(809.68, -2159.13, 29.62, 1.43),
    },
    Interaction = {
        targetIcon = 'fas fa-gun',      --Target Icon
        targetLabel = 'Open Weapon Store',  --Shop Target/Text Label
        radius = 2.5,   --Interaction Radius
        spawnPed = 's_m_y_ammucity_01',  -- Put false if you dont need ped
        scenario = 'WORLD_HUMAN_COP_IDLES',  --Ped Scenario Animation put false if you dont need
    },
    Blips = {
        Enable = true,      --Enable/Disable Blips
        blipsprite = 110,
        blipscale = 0.6,
        blipcolor = 0,
    },
    requiredJob = {        --Supports Multiple Jobs Restriction with job grades
        ['police'] = {1,2},
        ['taxi'] = {1},
    },
    requiredGang = {    --Supports Multiple Gangs Restriction with gang grades [*Only QB]
        ['ballas'] = {1,2},
        ['lostmc'] = {1},
    },   
},

Additional detailed guidance can be found in the config itself. If you need further assistance, please feel free to contact us on Discord.

📜
🛠️