SlashCo Wiki

Player:GiveDocument

  Player:GiveDocument( string name, number rating )

Description

Gives the player a document with the given rating and persists it to the database.
If the player already has the document, its rating is only updated when the new rating is higher than the stored one. Networks the (updated) document to the player afterwards.

Arguments

1string name

Name of the document to give.

2number rating

Rating to give the document, from 0 to 3.