Difference between revisions of "API CanUseAddon"
From Vendetta Lua
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
− | | name = CanUseAddon | + | |name =CanUseAddon |
− | | desc = check if the player can equip the addon ''itemid'' | + | |desc =check if the player can equip the addon ''itemid'' |
− | | arg1_name = itemid | + | |arg1_name =itemid |
− | | arg1_type = number | + | |arg1_type =number |
− | | arg1_desc = [[itemid]] of addon to check | + | |arg1_desc =[[itemid]] of addon to check |
− | | ret1_name = ret1 | + | |ret1_name =ret1 |
− | | ret1_type = boolean | + | |ret1_type =boolean |
− | | ret1_desc = can use | + | |ret1_desc =can use |
− | | ret2_name = {string l1 ...} | + | |ret2_name ={string l1 ...} |
− | | ret2_type = table | + | |ret2_type =table |
− | | ret2_desc = 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) | + | |ret2_desc =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) |
− | | notes = '''Example:'''<br> | + | |notes ='''Example:'''<br> |
<source lang="lua">CanUseAddon(12345) -> true {1, 2, 2, 2, 2}</source><br> | <source lang="lua">CanUseAddon(12345) -> true {1, 2, 2, 2, 2}</source><br> | ||
}} | }} |
Latest revision as of 09:00, 5 April 2011
CanUseAddon
Type | Name | Description |
---|---|---|
number | itemid | itemid of addon to check |
Type | Name | Description |
---|---|---|
boolean | ret1 | can use |
table | {string 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) |
CanUseAddon(12345) -> true {1, 2, 2, 2, 2}