i use crearDialogoUsuario(text, time) for create a dialog, and show it X time.. It works..
but if i use this function 2 times at the same time
example
crearDialogoUsuario("Hi, how are you", 4000)
crearDialogoUsuario("Bye", 4000)
that 2 dialog will appear at the same time, and i dont want that.. i want the second appears when the first finish.. before 4 seconds..
so i create crearDialogoUsuario(text, time, delay) this function supose will white the "delay" i use for show the dialog.. but it doesnt works using this
crearDialogoUsuario("Hi, how are you", 4000)
crearDialogoUsuarioDelay("Bye", 4000, 4000)
and my function is
----------------------------------- Dialogo Usuario con Delay ------------------------------------
function crearDialogoUsuarioDelay(text, time, delay)
setTimer(crearDialogoUsuario, delay, 1, text, time)
end
--------------------------------------------------------------------------------------------------------
when i use it.. say Bad Argumen @ in triggerclientevent here
---------------------------------------- Dialogo Usuario -----------------------------------------
function crearDialogoUsuario(text, time)
triggerClientEvent(client, "formatearDialogo", getRootElement(), text, time)
end
--------------------------------------------------------------------------------------------------