Items

This resource expects several items to exist in your inventory system.

Below is a list of the important ones and how they are used.


Overview

Core gameplay items

  • xmas_key

    • Calendar key for the current day.

    • Referenced by Config.CalendarKeyItem.

    • Given as a quest reward (Config.Quest.KeyReward) or by your own systems.

  • xmas_ball, xmas_garland, xmas_star, santa_cookie, snowball, candy_cane, exclusive_xmas_hat

    • Donation items for the main tree.

    • Defined in Config.DonationItems with XP values.


Toys / Props

  • snowball

    • Two uses:

      • Donation item (if defined in Config.DonationItems).

      • Placeable toy configured in Config.Toys['snowball'] → spawns a xm3_prop_xm3_snowman_01b snowman.

    • On QBCore, registered as a usable item automatically.

  • 3m_xmas_gift (prop)

    • World prop model for carryable gifts at Santa spots and in the quest.

    • Not an inventory item by default.

    • Configured via:

      • Config.CarryGiftModel (carry animation)

      • Config.SantaSpots[i].gifts[*].model


Shoulder Plush Toys

Configured in Config.PedToys:

  • xmas_plush_elf

  • xmas_plush_elf2

  • xmas_plush_elf3

  • xmas_plush_elf5

  • xmas_plush_elf7

Usage:

  • These items are non-consumable toggles:

    • Use item → attach plush to shoulder.

    • Use the same item again → detach.

    • With a different toy already attached → only notification.

On QBCore, xmas_plush_elf is automatically registered as usable; you should make the rest usable if you want to use them too.


Food / Buff Items

  • santa_cookie

  • candy_cane

On QBCore they are registered as usable items and emit client events:

  • xmas:food:UseSantaCookie

  • xmas:food:UseCandyCane

This resource does not implement the visual/buff effects – it only emits the events.

You can handle them in your own script (see Developer API for an example): https://3mstudio.github.io/3MStudioDocs/3M_Christmas/Developers.html#food-events


Example item definitions

Example SQL (adjust fields to your schema):


For more advanced integrations (XP, food effects, UI), see Developer API: https://3mstudio.github.io/3MStudioDocs/3M_Christmas/Developers.html