nyuuzyou/wikis huggingface dataset:
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetCustomBuybackCooldown

== Function Description ==
 float GetCustomBuybackCooldown(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
float - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetCustomBuybackCost

== Function Description ==
 int GetCustomBuybackCost(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetCustomTeamAssignment

== Function Description ==
 int GetCustomTeamAssignment(int playerIndex) 
returns the team number that the player should join
== Parameters ==
Type	Name 	Description
int 	playerIndex	player index
== Returns ==
int - Team that the player should join
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetDamageDoneToHero

== Function Description ==
 int GetDamageDoneToHero(int iPlayerID, int iVictimID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
int 	iVictimID	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetEventPointsForPlayerID

== Function Description ==
 int GetEventPointsForPlayerID(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetEventPremiumPointsGranted

== Function Description ==
 int GetEventPremiumPointsGranted(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetEventRankGranted

== Function Description ==
 int GetEventRankGranted(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetGoldBagsCollected

== Function Description ==
 int GetGoldBagsCollected(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetGoldLostToDeath

== Function Description ==
 int GetGoldLostToDeath(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetGoldSpentOnBuybacks

== Function Description ==
 int GetGoldSpentOnBuybacks(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetGoldSpentOnConsumables

== Function Description ==
 int GetGoldSpentOnConsumables(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetGoldSpentOnItems

== Function Description ==
 int GetGoldSpentOnItems(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetGoldSpentOnSupport

== Function Description ==
 int GetGoldSpentOnSupport(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetHeroDamageTaken

== Function Description ==
 int GetHeroDamageTaken(int iPlayerID, bool bTotal) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
bool	bTotal 	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetKillsDoneToHero

== Function Description ==
 int GetKillsDoneToHero(int attackerPlayerID, int victimPlayerID) 
Returns the number of times the attacker (first argument) has killed the victim (second argument)
== Parameters ==
Type	Name 	Description
int 	attackerPlayerID	No Description Set
int 	victimPlayerID 	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetLastHitMultikill

== Function Description ==
 int GetLastHitMultikill(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetLastHitStreak

== Function Description ==
 int GetLastHitStreak(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetNearbyCreepDeaths

== Function Description ==
 int GetNearbyCreepDeaths(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetNthCourierForTeam

== Function Description ==
 handle GetNthCourierForTeam(int nCourierIndex, int nTeamNumber) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	nCourierIndex	No Description Set
int 	nTeamNumber 	No Description Set
== Returns ==
handle - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetNthPlayerIDOnTeam

== Function Description ==
 int GetNthPlayerIDOnTeam(int iTeamNumber, int iNthPlayer) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iTeamNumber	No Description Set
int 	iNthPlayer 	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetNumConsumablesPurchased

== Function Description ==
 int GetNumConsumablesPurchased(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetNumCouriersForTeam

== Function Description ==
 int GetNumCouriersForTeam(int nTeamNumber) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	nTeamNumber	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetNumItemsPurchased

== Function Description ==
 int GetNumItemsPurchased(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetOriginalLobbyTeam

== Function Description ==
 int GetOriginalLobbyTeam(int iPlayerID) 
The team this player was originally assigned in the lobby. DOTA_TEAM_NOTEAM if no lobby info.
;Example
function CDOTA_PlayerResource:GetOriginalLobbyTeam( iPlayerID ) end
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetPlayerCountForTeam

== Function Description ==
 int GetPlayerCountForTeam(int iTeam) 
''''
;Example
function CDOTA_PlayerResource:GetPlayerCountForTeam( iTeam ) end
== Parameters ==
Type	Name 	Description
int 	iTeam	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetPlayerLoadedCompletely

== Function Description ==
 bool GetPlayerLoadedCompletely(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
bool - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetPlayerReservedState

== Function Description ==
 bool GetPlayerReservedState(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
bool - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetRawPlayerDamage

== Function Description ==
 int GetRawPlayerDamage(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetReliableGold

== Function Description ==
 int GetReliableGold(int playerID) 
Returns how much reliable gold the specified player currently has
== Parameters ==
Type	Name 	Description
int 	playerID	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetRoshanKills

== Function Description ==
 int GetRoshanKills(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetSteamAccountID

== Function Description ==
 unsigned GetSteamAccountID(int iPlayerID) 
Return player's steamID32
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
unsigned - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetSteamID

== Function Description ==
 unsigned GetSteamID( int iPlayerID ) 
Return player's steamID64
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
unsigned - userdata
== Notes ==
If you need to handle the 64 bit SteamID in Lua, it may be helpful to convert it to a string with:
local steamId64 = tostring(PlayerResource:GetSteamID(PlayerID))
More information about the SteamID can be found here:
* https://developer.valvesoftware.com/wiki/SteamID
* http://whatsmysteamid.azurewebsites.net/
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetTeamPlayerCount

== Function Description ==
 int GetTeamPlayerCount() 
Players on a valid team (radiant, dire, or custom*) who haven't abandoned the game
;Example
function CDOTA_PlayerResource:GetTeamPlayerCount( ) end
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetTimeOfLastConsumablePurchase

== Function Description ==
 float GetTimeOfLastConsumablePurchase(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
float - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetTimeOfLastDeath

== Function Description ==
 float GetTimeOfLastDeath(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
float - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetTimeOfLastItemPurchase

== Function Description ==
 float GetTimeOfLastItemPurchase(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
float - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetTotalEarnedGold

== Function Description ==
 int GetTotalEarnedGold(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetTotalEarnedXP

== Function Description ==
 int GetTotalEarnedXP(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetTotalGoldSpent

== Function Description ==
 int GetTotalGoldSpent(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetTowerDamageTaken

== Function Description ==
 int GetTowerDamageTaken(int iPlayerID, bool bTotal) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
bool	bTotal 	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetUnitShareMaskForPlayer

== Function Description ==
 int GetUnitShareMaskForPlayer(int nPlayerID, int nOtherPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	nPlayerID 	No Description Set
int 	nOtherPlayerID	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetUnreliableGold

== Function Description ==
 int GetUnreliableGold(int playerID) 
Returns how much unreliable gold the specified player currently has
== Parameters ==
Type	Name 	Description
int 	playerID	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.IncrementAssists

== Function Description ==
 void IncrementAssists(int playerID, int iVictimID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	playerID 	No Description Set
int 	iVictimID	No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.IncrementDeaths

== Function Description ==
 void IncrementDeaths(int playerID, int iKillerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	playerID 	No Description Set
int 	iKillerID	No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.IncrementTotalEarnedXP

== Function Description ==
 void IncrementTotalEarnedXP(int iPlayerID, int iXP, int nReason) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
int 	iXP 	No Description Set
int 	nReason 	No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.IsBroadcaster

== Function Description ==
 bool IsBroadcaster(int iPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
== Returns ==
bool - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.IsDisableHelpSetForPlayerID

== Function Description ==
 bool IsDisableHelpSetForPlayerID(int nPlayerID, int nOtherPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	nPlayerID 	No Description Set
int 	nOtherPlayerID	No Description Set
== Returns ==
bool - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.IsHeroSharedWithPlayerID

== Function Description ==
 bool IsHeroSharedWithPlayerID(int nUnitOwnerPlayerID, int nOtherPlayerID) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	nUnitOwnerPlayerID	No Description Set
int 	nOtherPlayerID 	No Description Set
== Returns ==
bool - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.ModifyGold

== Function Description ==
 int ModifyGold(int playerID, int goldAmmt, bool reliable, int nReason) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	playerID	No Description Set
int 	goldAmmt	No Description Set
bool	reliable	No Description Set
int 	nReason 	No Description Set
== Returns ==
int - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.ReplaceHeroWith

== Function Description ==
 handle ReplaceHeroWith(int iPlayerID, string pszHeroClass, int nGold, int nXP) 
(playerID, heroClassName, gold, XP) - replaces the player's hero with a new one of the specified class, gold and XP
== Parameters ==
Type 	Name 	Description
int 	iPlayerID 	No Description Set
string	pszHeroClass	No Description Set
int 	nGold 	No Description Set
int 	nXP 	No Description Set
== Returns ==
handle - No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.SetBuybackCooldownTime

== Function Description ==
 void SetBuybackCooldownTime(int nPlayerID, float flBuybackCooldown) 
No Description Set
== Parameters ==
Type 	Name 	Description
int 	nPlayerID 	No Description Set
float	flBuybackCooldown	No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.SetBuybackGoldLimitTime

== Function Description ==
 void SetBuybackGoldLimitTime(int nPlayerID, float flBuybackCooldown) 
No Description Set
== Parameters ==
Type 	Name 	Description
int 	nPlayerID 	No Description Set
float	flBuybackCooldown	No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.SetCameraTarget

== Function Description ==
 void SetCameraTarget(int nPlayerID, handle hTarget) 
(playerID, entity) - force the given player's camera to follow the given entity
== Parameters ==
Type 	Name 	Description
int 	nPlayerID	No Description Set
handle	hTarget 	No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.SetCustomBuybackCooldown

== Function Description ==
 void SetCustomBuybackCooldown(int iPlayerID, float flCooldownTime) 
Set the buyback cooldown for this player.
== Parameters ==
Type 	Name 	Description
int 	iPlayerID 	No Description Set
float	flCooldownTime	No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.SetCustomBuybackCost

== Function Description ==
 void SetCustomBuybackCost(int iPlayerID, int iGoldCost) 
Set the buyback cost for this player.
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
int 	iGoldCost	No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.SetCustomPlayerColor

== Function Description ==
 void SetCustomPlayerColor(int iPlayerID, int r, int g, int b) 
Set custom color for player (minimap, scoreboard, etc)
;Example
function CDOTA_PlayerResource:SetCustomPlayerColor( iPlayerID, r, g, b ) end
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
int 	r 	No Description Set
int 	g 	No Description Set
int 	b 	No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.SetCustomTeamAssignment

== Function Description ==
 void SetCustomTeamAssignment(int playerid, int teamToJoin) 
Sets the team that the player should join
== Parameters ==
Type	Name 	Description
int 	playerid 	player id
int 	teamToJoin	team that the player should join
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.SetGold

== Function Description ==
 void SetGold(int playerID, int amount, bool reliableGold) 
Sets the reliable/unreliable gold of the specified player
== Parameters ==
Type	Name 	Description
int 	playerID 	ID of the player whose gold should be set
int 	amount 	An amount of gold
bool	reliableGold	If true, the player's reliable gold will be set; if false, the player's unreliable gold will be set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.SetLastBuybackTime

== Function Description ==
 void SetLastBuybackTime(int iPlayerID, int iLastBuybackTime) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID 	No Description Set
int 	iLastBuybackTime	No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.SetOverrideSelectionEntity

== Function Description ==
 void SetOverrideSelectionEntity(int nPlayerID, handle hEntity) 
Set the forced selection entity for a player.
;Example
function CDOTA_PlayerResource:SetOverrideSelectionEntity( nPlayerID, hEntity ) end
== Parameters ==
Type 	Name 	Description
int 	nPlayerID	No Description Set
handle	hEntity 	No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.SetPlayerReservedState

== Function Description ==
 void SetPlayerReservedState(int iPlayerID, bool bReserved) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID	No Description Set
bool	bReserved	No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.SetUnitShareMaskForPlayer

== Function Description ==
 void SetUnitShareMaskForPlayer(int nPlayerID, int nOtherPlayerID, int nFlag, bool bState) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	nPlayerID 	No Description Set
int 	nOtherPlayerID	No Description Set
int 	nFlag 	bitmask; 1 shares heroes, 2 shares units, 4 disables help
bool	bState 	No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.SpendGold

Category:Dota2Function
Category:CDOTA_PlayerResource
== Function Description ==
 void SpendGold(int playerID, int amount, int reason) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	playerID	No Description Set
int 	amount 	No Description Set
int 	reason 	Use one of the gold modifier constants
Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.UpdateTeamSlot

== Function Description ==
 void UpdateTeamSlot(int iPlayerID, int iTeamNumber, bool bFromLobby) 
No Description Set
== Parameters ==
Type	Name 	Description
int 	iPlayerID 	No Description Set
int 	iTeamNumber	No Description Set
bool	bFromLobby 	No Description Set
Category:Dota2Function
Category:CDOTA_PlayerResource