Skip to main content
The Deno 2 Release Candidate is here
Learn more
interface Gift
import { type Gift } from "https://deno.land/x/sptaki@1.2.0/models/spt/config/IGiftsConfig.d.ts";

Properties

items: Item[]

Items to send to player

Who is sending the gift to player

optional
senderId: string

Optinal - supply a users id to send from, not necessary when sending from SYSTEM or TRADER

senderDetails: IUserDialogInfo
optional
trader: Traders

Optional - supply a trader type to send from, not necessary when sending from SYSTEM or USER

messageText: string
optional
localeTextId: string

Optional - if sending text from the client locale file

optional
timestampToSend: number

Optional - Used by Seasonal events to send on specific day

associatedEvent: SeasonalEventType
collectionTimeHours: number
optional
profileChangeEvents: IProfileChangeEvent[]

Optional, can be used to change profile settings like level/skills