CallSecureProtected
ESO Lua API function — used by 159 of the 3,030 addons we indexed (combined 55,319,777 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
CallSecureProtected(string functionName, types arguments)Returns: bool success, types returns
Real usage — from Dolgubon's Lazy Writ Crafter
if IsProtectedFunction("RequestMoveItem") then
CallSecureProtected("RequestMoveItem", bag, slot, BAG_BACKPACK,emptySlot,amountRequired)
elseShort excerpt from the shipping addon Dolgubon's Lazy Writ Crafter — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| Dolgubon's Lazy Writ Crafter | 9,498,314 |
| Bandits User Interface | 6,130,317 |
| AUI - Advanced UI | 5,406,091 |
| AwesomeGuildStore | 4,722,462 |
| LibSets (All set items ingame & preview. lua API + excel sheet) | 4,357,189 |
| WritWorthy | 2,484,332 |