AV Scripts
StoreDiscord
  • Documentation
  • Guides
    • Dealerships
      • Installation
      • Admin Panel
        • All Vehicles
        • Dealerships
        • Auctions
      • Dealership Panel
        • Overview
        • Auctions
        • Employees
        • Orders
        • Payments
        • Showroom
        • Warehouse
        • Pre Owned
        • Settings
      • Buy/Sell Vehicles
      • Catalogue
      • Exports
      • FAQ
    • House Robbery
      • Installation
      • Add Shells
      • Dispatch
      • Exports
      • Weather
      • Minigames
      • Notifications
      • New Houses
      • Object Types
      • Sell Items
    • Illegal Runs
      • Installation
      • Customization
      • Ox Inventory
      • QB Inventory
    • Multicharacter
      • Installation
      • Character Slots
      • Clothes
      • Scenes
        • Previews
      • Exports
      • Weather
    • Paleto Heist
      • Buy here
    • Refund System
      • Installation
        • Inventories
    • Tuning Script
      • Installation
      • Events and Controls
      • Exports
      • Price Multiplier
    • Vehicleshop
      • Installation
      • Admin Panel
      • Addon Vehicles
      • Functions
        • Fuel
        • Keys
        • VIP
        • Weather
      • Garages
      • HUD
      • Society
    • Weather Script
      • Installation
      • Breath Condensation
      • Fog
      • Real Time Sync
      • Exports
    • VIP Script
      • Installation
      • Exports
      • Categories
      • Admin
      • Tebex
      • Free Tokens
  • LAPTOP PACK V3
    • Laptop v3
      • Installation
        • Inventory
        • Cosmo
        • Permissions
        • QBCore
        • Custom Framework/Inventory
        • Phone
        • Translate
      • Browser
      • Terminal
      • Documents
      • APPs Config
      • Exports
    • Boosting
      • Create Profile
      • APP
      • Contracts
      • Dispatch
      • Lockpick Export
      • VIN Export
    • Business
      • Installation
        • Inventories
          • Origen Inventory
            • ESX
            • QBCore
          • OX Inventory
          • QB/PS/LJ Inventory
          • Quasar Inventory
            • ESX
            • QBCore
          • Codem Inventory
          • Tgiann Inventory
        • ESX
      • Admin Panel
        • Create Zones
        • Edit Zones
      • Config
        • Animations
        • Blips
        • Buttons
        • Crafting
        • Effects
        • Events
          • Items
          • Zones
        • Logs
          • Custom Logs
        • Permissions
      • Exports
      • Banking Scripts
      • Multijobs
    • Cameras
      • Installation
        • Vehicle Cameras
      • Place Camera
      • Job Cameras
    • Drugs
      • Installation
      • Admin Panel
      • APP
      • Tables
      • Labs
        • PC
        • Raids
      • Alert Cops
      • Shells
      • Exports
    • Gangs
      • Installation
      • Admin Panel
        • Gangs
        • Whitelist
      • Properties
      • Register Gang
      • APP
        • Members
        • Settings
        • Missions
        • Blackmarket
        • Properties
      • Graffitis
      • Missions
      • Gang NPC
      • Shells
      • Exports
      • Labs
    • Groups
      • Events
      • Exports
    • Music
      • Installation
      • Music Labels
      • APP
        • Search Music
        • Playlists
        • Headphones
      • CDs
    • Racing
      • Installation
        • Permissions
        • Discord Logs
        • Addon Vehicles
      • Admin Panel
      • Categories
      • Events
      • Exports
      • Personal Settings
      • The Underground
    • Custom APPs
    • Discord Support
Powered by GitBook
On this page
  • Effects based on Item Type
  • Effects based on ingredients
  1. LAPTOP PACK V3
  2. Business
  3. Config

Effects

config/effects.lua

Last updated 11 months ago

In this file you can find the effects triggered by the items crafted using av_business. Effects will be triggered based on the item ingredients or item type.

If the item doesn't have any ingredients it will trigger an effect based on item type.

Effects based on Item Type

  • In Config.DefaultEffects you have the effects triggered based on item type

  • There's some examples like drink, food, alcohol and joint but if you add more item types to the script make sure to register an effect.

  • Every option is a function that triggers a different event or function, for example drink and food triggers an export that adds thirst/hunger to your player, alcohol triggers an alcohol effect and joint triggers a drugs effect... Customize your own item types with the export, event or function that u want is on you to create it.

  • Alcohol/drug functions can be found in client/editable/effects.lua

Effects based on ingredients

  • If the item contains ingredients you can trigger a different effect per ingredient, for example, if we consume an item named Chocolate Milkshake that contains the ingredients Ice, Milk and Chocolate, we are gonna trigger a different effect for every ingredient:

Milk triggers the export to add 100 points of thirst for our character

Chocolate triggers the export to add 100 points of thirst for our character

Ice triggers the export to add 25 points of thirst for our character

Chocolate Milkshake will add 225 points of thirst to our character after consume it, and this is because every ingredients triggers its own function.

If you mix ingredients that has functions with ingredients that don't trigger anything, the only effects you will have are the ones from the ingredients with custom effects.

DefaultEffects are only triggered if the item doesn't have any ingredients or if the ingredients didn't triggered any effect.

IMPORTANT: Is on you to edit and make sure your ingredients triggers your custom exports/events correctly, Config.Effects/Config.DefaultEffects are triggered client side.