Managing Missions
A quick guide on updating your own missions for players!
-- Triggers a server event to update the mission progress
-- @param missionId (string) - The ID of the mission being updated
-- @param progress (number) - Number of progress to add
-- @param LocalPlayer.state.tokenizer_KOJA_DAILYREWARDS (string) - Users token
TriggerServerEvent('koja_dailyrewards:server:updateProgress', missionId, progress, LocalPlayer.state.tokenizer_KOJA_DAILYREWARDS)
-- EXAMPLE
TriggerServerEvent('koja_dailyrewards:server:updateProgress', 'test_mission1', 2, LocalPlayer.state.tokenizer_KOJA_DAILYREWARDS)
-- Does the same thing but with a export and in server
-- @param source (number) - Players source you want to set the progress to
-- @param missionId (string) - The ID of the mission being updated
-- @param progress (number) - Number of progress to add
exports['resourcename']:updateProgress(source, missionid, progress)
-- EXAMPLE
exports['KOJA_DAILYREWARDS']:updateProgress(source, 'test_mission1', 3)
Last updated