Olá galerinha, sou novo em Lua/MTA.
Estou tentando fazer um scripting de teste!
Estou chamando uma função do Cliente, pelo Servidor.
Mais quando eu chamo, A função do cliente não é executada!
Segue o código!
--Server
function entrouFunctions()
triggerClientEvent ( "fucsEntrou", source)
end
addEventHandler( "onPlayerJoin", getRootElement(), entrouFunctions)
--Cliente
function displayEntrou()
outputChatBox(".......")
end
addEvent("fucsEntrou", true)
addEventHandler("fucsEntrou", root, displayEntrou)
Desde já, Agradeço a ajuda a Comunidade!