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_keyCalendar 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_hatDonation items for the main tree.
Defined in
Config.DonationItemswith XP values.
Toys / Props
snowballTwo uses:
Donation item (if defined in
Config.DonationItems).Placeable toy configured in
Config.Toys['snowball']→ spawns axm3_prop_xm3_snowman_01bsnowman.
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_elfxmas_plush_elf2xmas_plush_elf3xmas_plush_elf5xmas_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_cookiecandy_cane
On QBCore they are registered as usable items and emit client events:
xmas:food:UseSantaCookiexmas: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):
Example entries:
The script automatically registers the following QBCore usable items:
snowball→ placeable toyxmas_plush_elf→ ped toy togglesanta_cookie→ emitsxmas:food:UseSantaCookiecandy_cane→ emitsxmas:food:UseCandyCane
You can extend this behaviour or mirror it for other plush items as needed.
Example items.lua entries:
If you want ox_inventory to trigger the toy or ped-toy logic directly, register a server-side usage handler:
For more advanced integrations (XP, food effects, UI), see Developer API: https://3mstudio.github.io/3MStudioDocs/3M_Christmas/Developers.html