View Single Post
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