Kartik Scripts

Crafting

Kartik-Business features a detailed crafting system for preparing food and drinks, complete with immersive animations.

Crafting Configuration

Config.Crafting = {
    MaxCraftAmount = 10,          
    TimePerItem = 15000,          
    Animations = {
        food = {
            dict = "amb@prop_human_bbq@male@base",
            clip = "base"
        },
        -- ...
    },
}
  • MaxCraftAmount: The maximum number of items a player can craft in a single batch.
  • TimePerItem: The base duration (in ms) required to craft one item.
  • Animations: Defines the animation dictionary and clip played while crafting different categories (food, drink, side).

Consumption Animations

When players consume items purchased from a business, specific animations and props are used.

Config.Animations = {
    ["burger"] = {          
        animName = "Burger",                               
        label = "Eating",                                    
        prop = "prop_cs_burger_01",                         
        dict = "mp_player_inteat@burger",                  
        animation = "mp_player_int_eat_burger",            
        bone = 18905,                                     
        offset = { 0.13, 0.05, 0.02, -50.0, 16.0, 60.0 }, 
        category = {"Food", "Side"}
    },
    -- ...
}
  • prop: The model of the item being held.
  • dict/animation: The animation played while consuming.
  • bone/offset: Precise positioning of the prop in the player's hand.
  • category: Links the item to specific business categories for animation selection.

On this page