🧢XTASK.po
Specifies what payout a player will get when completing an achievement.
▸ Data Type
table
▸ Available Options
items | Actual entities you can give to a player, weapons, etc. |
currency | Types of money or points you can give |
xp | Gives straight XP to a player for completing the achievement. Whatever the value is set to, is what they get. |
xp_percent | Gives XP to a player based on a percentage of their current required XP to next level. This ensures one achievement doesn't boost the player multiple levels. |
spell | Rewards a player with a spell. Requires the addon Magic Wand Rewrite to be installed. |
▸ Description
The payout table can be a little complex looking, but we'll break it down.
All fo the options available to give to a player are listed in the code below:
To give a player straight 200 XP for completing an achievement:
To give a player 1500 darkrp dollars for completing an achievement:
To give a player 20 point shop points for completing an achievement:
To give a player 5 Premium Pointshop 2 points:
To give a player an SWEP / Entity, you must specify the entity name:
You can also mix / match rewards and give someone multiple items:
Give a player 1500 Darkrp Dollars and 250 XP for completing an achievement:
▸ Notes
This setting requires the following additional setting:
Last updated