> For the complete documentation index, see [llms.txt](https://shift-studios.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shift-studios.gitbook.io/docs/new/editor-29.md). Agents can also search and read this documentation through its [MCP server](https://shift-studios.gitbook.io/docs/~gitbook/mcp).

# Game Crafting

Transform Your Server With Shift Studios — Powerful, Optimized, And Reliable Resources Built To Improve Every Experience.

<figure><img src="https://4062160621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgqh3gjuJzDAWNXTD9sEE%2Fuploads%2FqUWAsAfTDDuv9o8HzHZD%2F172ffe66-95b5-44ed-ba09-8a7f1071d1d8.png?alt=media&amp;token=24a302ba-9416-4ed7-9367-782ec6da2926" alt=""><figcaption></figcaption></figure>

### Installation

{% stepper %}
{% step %}

### Game Crafting

Read Everything Below To Install
{% endstep %}

{% step %}

### Drag & Drop

Drag & Drop The Resource Into Your FiveM Server
{% endstep %}

{% step %}

### Ensure The Resource

Make Sure To Ensure shift-gamecrafting In Your Server CFG.
{% endstep %}

{% step %}

### Install The Items & Images

```
Images Are Located Inside The Install Folder
```

{% code expandable="true" %}

```lua
['shiftelectronics'] = {
    label = 'PC Electronics',
    stack = true,
    close = true,
    client = {
        image = 'shiftelectronics.png'
    }
},

['shiftgaming_console'] = {
    label = 'Gaming Console',
    stack = true,
    close = true,
    client = {
        image = 'shiftgaming_console.png'
    }
},

['shiftgaming_consolemb'] = {
    label = 'Console Motherboard',
    stack = true,
    close = true,
    client = {
        image = 'shiftgaming_consolemb.png'
    }
},

['shiftgaming_controller'] = {
    label = 'Gaming Controller',
    stack = true,
    close = true,
    client = {
        image = 'shiftgaming_controller.png'
    }
},

['shiftgaming_controllermb'] = {
    label = 'Controller Motherboard',
    stack = true,
    close = true,
    client = {
        image = 'shiftgaming_controllermb.png'
    }
},

['shiftgaming_cpu'] = {
    label = 'CPU',
    stack = true,
    close = true,
    client = {
        image = 'shiftgaming_cpu.png'
    }
},

['shiftgaming_cpufan'] = {
    label = 'CPU Fan',
    stack = true,
    close = true,
    client = {
        image = 'shiftgaming_cpufan.png'
    }
},

['shiftgaming_gpu'] = {
    label = 'GPU',
    stack = true,
    close = true,
    client = {
        image = 'shiftgaming_gpu.png'
    }
},

['shiftgaming_keyboard'] = {
    label = 'Mechanical Keyboard',
    stack = true,
    close = true,
    client = {
        image = 'shiftgaming_keyboard.png'
    }
},

['shiftgaming_keyboardmb'] = {
    label = 'Keyboard Motherboard',
    stack = true,
    close = true,
    client = {
        image = 'shiftgaming_keyboardmb.png'
    }
},

['shiftgaming_motherboard'] = {
    label = 'Motherboard',
    stack = true,
    close = true,
    client = {
        image = 'shiftgaming_motherboard.png'
    }
},

['shiftgaming_mouse'] = {
    label = 'Gaming Mouse',
    stack = true,
    close = true,
    client = {
        image = 'shiftgaming_mouse.png'
    }
},

['shiftgaming_mousemb'] = {
    label = 'Mouse Motherboard',
    stack = true,
    close = true,
    client = {
        image = 'shiftgaming_mousemb.png'
    }
},

['shiftgaming_pc'] = {
    label = 'Gaming PC',
    stack = true,
    close = true,
    client = {
        image = 'shiftgaming_pc.png'
    }
},

['shiftgaming_pccase'] = {
    label = 'PC Case',
    stack = true,
    close = true,
    client = {
        image = 'shiftgaming_pccase.png'
    }
},

['shiftgaming_pcfan'] = {
    label = 'PC Fan',
    stack = true,
    close = true,
    client = {
        image = 'shiftgaming_pcfan.png'
    }
},

['shiftgaming_retrosystem'] = {
    label = 'Retro Gaming System',
    stack = true,
    close = true,
    client = {
        image = 'shiftgaming_retrosystem.png'
    }
},

['shiftpc_table'] = {
    label = 'Game Crafting Workbench',
    stack = false,
    close = true,
    client = {
        image = 'shiftpc_table.png',
        event = 'shift-gamecrafting:placeTable'
    }
},

['shiftphone_phonecontroller'] = {
    label = 'Gaming Phone Controller',
    stack = true,
    close = true,
    client = {
        image = 'shiftphone_phonecontroller.png'
    }
},
```

{% endcode %}
{% endstep %}

{% step %}

### Configure Resource

Make Sure To Configure The Resource To Your Liking

{% code expandable="true" %}

```lua
-- ⚫ ███████╗██╗  ██╗██╗███████╗████████╗    ███████╗████████╗██╗   ██╗██████╗ ██╗ ██████╗ ███████╗ ⚫
-- ⬛ ██╔════╝██║  ██║██║██╔════╝╚══██╔══╝    ██╔════╝╚══██╔══╝██║   ██║██╔══██╗██║██╔═══██╗██╔════╝ ⬛
-- ⚫ ███████╗███████║██║█████╗     ██║       ███████╗   ██║   ██║   ██║██║  ██║██║██║   ██║███████╗ ⚫
-- ⬛ ╚════██║██╔══██║██║██╔══╝     ██║       ╚════██║   ██║   ██║   ██║██║  ██║██║██║   ██║╚════██║ ⬛
-- ⚫ ███████║██║  ██║██║██║        ██║       ███████║   ██║   ╚██████╔╝██████╔╝██║╚██████╔╝███████║ ⚫
-- ⬛ ╚══════╝╚═╝  ╚═╝╚═╝╚═╝        ╚═╝       ╚══════╝   ╚═╝    ╚═════╝ ╚═════╝ ╚═╝ ╚═════╝ ╚══════╝ ⬛

Config = {}

Config.TableItem = 'shiftpc_table'
Config.TableProp = 'shiftstudios_gamingworkdesk' -- streamed with this resource
Config.CraftRequireBench = true
Config.Placement = {
    MaxDistance = 5.0,             -- maximum distance from player to placement location
    MinimumDistance = 0.9,
    RotationStep = 10.0,
    MaxRayDistance = 6.0,
    ModelZOffset = 0.0,            -- fine-tune if custom workdesk sits above/below the ground
    LocalOnly = true,              -- benches match the original locally placed resource
}

Config.Notifications = {
    System = 'ox_lib',            -- ox_lib | qb | esx | okok | custom
    Position = 'center-left',     -- ox_lib position; center-left requested
}

Config.Commands = {
    Sell = 'sellgames',         -- opens the selling menu, or stops an active buyer search
}

Config.Selling = {
    Enabled = true,
    CallDuration = 2600,
    BuyerDelay = 2200,
    SalesProgressDuration = 2200,
    Animations = {
        Call = {dict = 'cellphone@', clip = 'cellphone_call_listen_base', prop = 'prop_npc_phone_02'},
        Exchange = {dict = 'mp_common', playerClip = 'givetake1_a', buyerClip = 'givetake1_b'},
    },
    MinimumSaleInterval = 6200,   -- server validation: start-to-completed-sale minimum
    MaxBuyerWait = 35000,
    ApproachDistance = 1.65,
    DespawnDistance = 45.0,
    SpawnDistanceMin = 13.0,
    SpawnDistanceMax = 19.0,
    PaymentMode = 'item',         -- item | qb | esx
    PaymentItem = 'money',        -- ox_inventory money item (when PaymentMode = item)
    Account = 'cash',             -- ESX: money / bank; QB: cash / bank
    BuyerModels = {
        'a_m_y_business_01', 'a_m_m_business_01', 'a_f_y_business_01',
        'a_m_y_hipster_02', 'a_f_y_hipster_01'
    },
    Prices = {                     -- each successful sale consumes exactly one finished item
        shiftgaming_pc = 1650,
        shiftgaming_mouse = 160,
        shiftgaming_console = 750,
        shiftgaming_controller = 170,
        shiftgaming_retrosystem = 640,
        shiftgaming_keyboard = 240,
        shiftphone_phonecontroller = 150,
    },
}

Config.IngredientLabels = {
    shiftgaming_cpu = 'CPU', shiftgaming_gpu = 'GPU', shiftgaming_pc = 'Gaming PC',
    shiftgaming_pcfan = 'PC Fan', shiftgaming_pccase = 'PC Case',
    shiftgaming_cpufan = 'CPU Fan', shiftgaming_mouse = 'Gaming Mouse',
    shiftelectronics = 'PC Electronics', shiftgaming_console = 'Gaming Console',
    shiftgaming_motherboard = 'Motherboard', shiftgaming_keyboard = 'Mechanical Keyboard',
    shiftgaming_mousemb = 'Mouse Motherboard', shiftgaming_controller = 'Gaming Controller',
    shiftgaming_consolemb = 'Console Motherboard', shiftgaming_retrosystem = 'Retro Gaming System',
    shiftgaming_keyboardmb = 'Keyboard Motherboard', shiftgaming_controllermb = 'Controller Motherboard',
    shiftphone_phonecontroller = 'Gaming Phone Controller',
}

Config.RecipeOrder = {
    'shiftgaming_pc', 'shiftgaming_mouse', 'shiftgaming_console', 'shiftgaming_controller',
    'shiftgaming_retrosystem', 'shiftgaming_keyboard', 'shiftphone_phonecontroller'
}

-- Original recipes, quantities, times, and success chances are preserved.
Config.Recipes = {
    shiftgaming_pc = {
        label='Gaming PC', icon='cpu', time=12000, chance=25,
        give={item='shiftgaming_pc',amount=1},
        required={shiftgaming_pccase=1,shiftgaming_cpu=1,shiftgaming_pcfan=6,shiftgaming_cpufan=1,shiftgaming_gpu=1,shiftgaming_motherboard=1,shiftelectronics=5},
        anim={dict='mini@repair',clip='fixing_a_player'}
    },
    shiftgaming_mouse = {
        label='Gaming Mouse', icon='mouse', time=5000, chance=95,
        give={item='shiftgaming_mouse',amount=1},
        required={shiftgaming_mousemb=1,shiftelectronics=5},
        anim={dict='mini@repair',clip='fixing_a_player'}
    },
    shiftgaming_console = {
        label='Gaming Console', icon='game', time=5000, chance=95,
        give={item='shiftgaming_console',amount=1},
        required={shiftgaming_consolemb=1,shiftelectronics=5},
        anim={dict='mini@repair',clip='fixing_a_player'}
    },
    shiftgaming_controller = {
        label='Gaming Controller', icon='game', time=5000, chance=95,
        give={item='shiftgaming_controller',amount=1},
        required={shiftgaming_controllermb=1,shiftelectronics=5},
        anim={dict='mini@repair',clip='fixing_a_player'}
    },
    shiftgaming_retrosystem = {
        label='Retro Gaming System', icon='game', time=5000, chance=95,
        give={item='shiftgaming_retrosystem',amount=1},
        required={shiftgaming_consolemb=1,shiftelectronics=5},
        anim={dict='mini@repair',clip='fixing_a_player'}
    },
    shiftgaming_keyboard = {
        label='Mechanical Keyboard', icon='keyboard', time=7000, chance=95,
        give={item='shiftgaming_keyboard',amount=1},
        required={shiftgaming_keyboardmb=1,shiftelectronics=10},
        anim={dict='mini@repair',clip='fixing_a_player'}
    },
    shiftphone_phonecontroller = {
        label='Gaming Phone Controller', icon='game', time=5000, chance=95,
        give={item='shiftphone_phonecontroller',amount=1},
        required={shiftgaming_controllermb=1,shiftelectronics=5},
        anim={dict='mini@repair',clip='fixing_a_player'}
    },
}

```

{% endcode %}
{% endstep %}

{% step %}

### Restart / Start Your Server

Ensure Everything Is Working Well & Enjoy !!
{% endstep %}
{% endstepper %}
