Exports and Events
OpenCalendar
With following export you can Open Calendar
exports['p_adventcalendar']:OpenCalendar()
TriggerEvent('p_adventcalendar:OpenCalendar')UpdateTask
You can use this export or event to update player task.
day
number (It's important, task will update only if currentDay is equal to day in argument)count
number
TriggerServerEvent('p_adventcalendar:UpdateTask', day, count)playerId
numberday
number (It's important, task will update only if currentDay is equal to day in argument)count
number
exports['p_adventcalendar']:UpdateTask(playerId, day, count)Example of Usage
local day = 1 -- Update task for day 1
local count = 1 -- Add 1 to current day task
TriggerServerEvent('p_adventcalendar:UpdateTask', day, count)local playerId = 1 -- replace with existing player id
local day = 1 -- Update task for day 1
local count = 1 -- Add 1 to current day task
exports['p_adventcalendar']:UpdateTask(playerId, day, count)Last updated