I would like to know how to call a function from an external module, as in ‘ui.lua’ when the button’s press becomes the specified function. However, I don’t have an event like that. I’d like to be able to do something like this in the module:
local function doAFunction(myFunction)
if (myFunction and type(myFunction)=="function" then
local myFunc=myFunction
end
myFunc()
end
binc [import]uid: 147322 topic_id: 28307 reply_id: 328307[/import]