Difference between revisions of "Packages:helpful-actions"

From PrometheusIPN Wiki
Jump to: navigation, search
Line 10: Line 10:
 
In step 2 you want to go to "Custom action" and use the following code, modify the modifier to your liking:
 
In step 2 you want to go to "Custom action" and use the following code, modify the modifier to your liking:
  
'''local modifier = 100
+
'''local modifier = 100'''
Prometheus.Temp.Ply:AddMoney(Prometheus.Temp.MoneySpent * modifier)'''
+
'''Prometheus.Temp.Ply:AddMoney(Prometheus.Temp.MoneySpent * modifier)'''
  
 
This would give the user 100 darkrp money for every $1 or €1 or whatever other currency you have. Meaning they can buy as much as they want. Modify the modifier to match how you want it to work.
 
This would give the user 100 darkrp money for every $1 or €1 or whatever other currency you have. Meaning they can buy as much as they want. Modify the modifier to match how you want it to work.

Revision as of 12:04, 2 January 2019

ULX rank giving based on current rank

Pointshop 1 points based on amount spent

Pointshop 2 points based on amount spent

DarkRP money based on amount spent

In step 1 enable "custom price" and set the minimum to whatever you want. Also select "Permanent package" and "Buyable more than once if already active".

In step 2 you want to go to "Custom action" and use the following code, modify the modifier to your liking:

local modifier = 100 Prometheus.Temp.Ply:AddMoney(Prometheus.Temp.MoneySpent * modifier)

This would give the user 100 darkrp money for every $1 or €1 or whatever other currency you have. Meaning they can buy as much as they want. Modify the modifier to match how you want it to work.