Pickle Mods
  • Pickle Mods
  • Paid Resources
    • Casinos
      • Installation
      • Tutorial
    • In-Game Store
      • Installation
      • Exports
      • Tebex & Coin Products
      • PTS Commands
    • Rewards System
      • Installation
      • Exports
      • Snippets
    • Bail & Bounty
      • Installation
      • Exports
    • Firefighter Job
      • Installation
      • Commands
      • Exports
      • Snippets
    • Advanced Crafting
      • Installation
    • Electrician Job
      • Installation
    • Construction Job
      • Installation
    • Hunting
      • Installation
    • Documents
      • Installation
      • Exports & Examples
    • Dealership
      • Installation
    • Police Tools
      • Installation
  • Free Resources
    • Pickle Airport
      • Installation
      • Hotfixes
    • Pickle Consumables
      • Installation
      • Hotfixes
    • Pickle Farming
      • Installation
    • Pickle Metal Detector
      • Installation
    • Pickle Payments
      • Installation
    • Pickle Prisons
      • Installation
      • Commands
      • Exports
      • Events
      • Snippets
    • Pickle Rentals
      • Installation
    • Pickle Slapboxing
      • Installation
    • Pickle Taxi Job
      • Installation
    • Waypoints
      • Installation
      • Exports
Powered by GitBook
On this page
  • Server-Side:
  • Client-Side:
  1. Paid Resources
  2. Rewards System

Exports

Server-Side:

exports.pickle_rewards:AddAchievement(source, achievementId)
--Adds specified achievement for source.
arguments: source, achievementId

exports.pickle_rewards:RemoveAchievement(source, achievementId)
--Removes specified achievement for source.
arguments: source, achievementId

exports.pickle_rewards:GetAchievementStatus(source, achievementId)
arguments: source, optional: achievementId
--Returns what the Acievement status is of a specific achievement.

exports.pickle_rewards:IsAchievementComplete(source, achievementId)
arguments: source, achievementId
--Returns if an Achievement is completed, but not claimed.

exports.pickle_rewards:IsAchievementClaimed(source, achievementId)
arguments: source, achievementId
--Retuns if an Achievement is claimed.

exports.pickle_rewards:AddObjectiveValue(source, achievementId, optionId, value)
--Adds the value of the achievements certain option.
arguments: source, achievementId, optionId, value 
--value is numerical(1 or greater). If value needs to be true, set to 1.

exports.pickle_rewards:RemoveObjectiveValue(source, achievementId, optionId, value)
--Removes the value of the achievements certain option.
arguments: source, achievementId, optionId, value 
--value is numerical(1 or greater). If value needs to be true, set to 1.

exports.pickle_rewards:SetObjectiveValue(source, achievementId, optionId, value)
--Sets the value of the achievements certain option.
arguments: source, achievementId, optionId, value 
--value is numerical(1 or greater). If value needs to be true, set to 1.

exports.pickle_rewards:GetObjectiveValue(source, achievementId, optionId)
--Returns the value of the achievements certain option.
arguments: source, achievementId, optionId

exports.pickle_rewards:AddSpins(source, amount)--Adds Spins to source.
arguments: source, amount
--amount is numerical.

exports.pickle_rewards:RemoveSpins(source, amount)--Removes Spins from source.
arguments: source, amount
--amount is numerical.

exports.pickle_rewards:SetSpins(source, amount)
arguments: source, amount
--amount is numerical.

exports.pickle_rewards:GetSpins(source)
arguments: source
--returns a value.

exports.pickle_rewards:GetStreakDay(source)
arguments: source
--Returns the current day of streak.

exports.pickle_rewards:GetReferralCode(source)
arguments: source
--Returns the referral code that's used to invite others.

exports.pickle_rewards:GetReferredCode(source)
arguments: source
--Returns the active referrer of source.

exports.pickle_rewards:GetPlaytime(source)
arguments: source
--Returns the total playtime of source.

exports.pickle_rewards:GetSessionTime(source)
arguments: source
--Returns the total playtime of source in the currect session. 
--(Closing game will reset this)

Client-Side:

exports.pickle_rewards:OpenMenu(section)
arguments: section
--Opens the menu to a specific section.

exports.pickle_rewards:CloseMenu()
--Closes the menu.

exports.pickle_rewards:IsInMenu()
--Returns if you're in the menu.

exports.pickle_rewards:GetPlaytime()
--Returns the players total play time.
PreviousInstallationNextSnippets

Last updated 1 year ago