API CanUseAddon

From Vendetta Lua
Revision as of 21:56, 25 January 2009 by Chefkoch (Talk | contribs) (split)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

CanUseAddon

Definition:
CanUseAddon(int itemid) -> bool ret1, {string l1 ..}
Description:
check if the player can equip the addon itemid
Arguments:
itemid itemid of addon to check
Returns:
ret1 can use
l1 license requirements of the item at the current station (1-5) (only returned for local addons and if the player is docked with a station)
Example:

CanUseAddon(12345) -> true {1, 2, 2, 2, 2}