Points

These functions can be called at any time and are used for the base functionality in PointShop.

Player:PS_GivePoints(points)

Arguments: Number points
Realm: Server
Description: Gives points to the player.

ply:PS_GivePoints(10)

Player:PS_TakePoints(points)

Arguments: Number points
Realm: Server
Description: Takes points from the player.

ply:PS_TakePoints(10)

Player:PS_SetPoints(points)

Arguments: Number points
Realm: Server
Description: Sets the players points.

ply:PS_SetPoints(10)

Player:PS_GetPoints()

Realm: Shared
Description: Returns the amount of points the player has.

local points = ply:PS_GetPoints()

Player:PS_HasPoints(points)

Arguments: Number points
Realm: Shared
Description: Returns whether the player has at least the amount of points.

local can_afford = ply:PS_HasPoints(10)
comments powered by Disqus