Hello, i want to do an function that triggers other dx function, like this:
local sw,sh = guiGetScreenSize()
function draw(splashpath,name,text)
if (splashpath) and (name) and (text) then
dg = dxDrawImage(sw*.1,sh*.65,sw*.900,sh*.600,"tt.png")
nm = dxDrawText(name,sw*.3,sh*.85)
spl = dxDrawImage(sw*.12,sh*.72,sw*.200,sh*.400,splashpath)
txt = dxDrawText(text,sw*.29,sh*.90)
else
outputDebugScript("Incorrect Syntaxis: drawDialogue(splashartpath,name,text)")
end
end
--This triggers the function in top
function drawDialogue(splashpath,name,text)
addEventHandler("onClientRender",getLocalPlayer(),draw)
end
i dont know how to add the arguments splashpath,name, and text into the eventHandler