Skip to content

API List

Jaliborc edited this page Nov 26, 2011 · 4 revisions

:GetItemInfo(player, bag, slot)

  • works alike GetItemInfo. If bag is set to "vault", works alike GetVoidItemInfo
  • in both case, return an extra final argument isCached, which is true when the information does not come from the server

:GetItemCount(player, item)

:GetBagInfo(player, bag)

  • returns itemLink, count, icon, equipSlot, size, isCached
  • isCached is true when the information does not come from the server

:GetBagType(player, bag)

  • returns isCached, isBank, isVault

:GetMoney(player)

  • self-explanatory

:IteratePlayers()

  • allows to iterate all the cached players in the server

:GetPlayerInfo(player)

  • returns class, race, sex

:IsPlayerCached(player)

  • self-explanatory

In all methods, the player argument always defaults to the current player if not provided.