on_purchase(func_name)

Parameters:
func_name (string) name of the function, or "" to unregister the event
 
Returns:
none

Description:
Register a callback function for whenever the player makes a purchase.

When the callback is executed, the following parameters are passed to it:
 - (string) type of item that was purchased (can be "clothing", "weapon", "weapon-ammo", "vehicle-cust")
 - (string) name of the player that made the purchase

 

back to indexSR3 Script Action Documentation
Last updated: Tue, 09 Aug 2011 11:32:16