Thread Tools Display Modes
Prev Previous Post   Next Post Next
07/08/20, 04:20 AM   #1
DarkPhalanx
AddOn Author - Click to view addons
Join Date: Sep 2019
Posts: 6
Question Clarification on function paramter types needed

Hi guys,

I'm new to lua and addon development and I created a function and have a question about paramters for lua functions. In C# I need to pass the input type

Code:
function X.FunctionName(bool unlock, string name)
end
But it doens't work like that, have tried to look other addons and they don't seem to pass the type in it. But can't figure out why it doesn't work for me or what the best practise is.

Code:
function X.FunctionName(unlock, name)
end
Any clarification on this is welcome
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » Clarification on function paramter types needed


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off