Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/03/19 in Status Updates

  1. MTA-Communication-Enchantment It is finally far enough in development to share this with you. I made an announcement a few days ago about solving some struggles, that people have with communicating between the server and the client. Today is the day that it isn't just rumour, but for you to use. Before I am going to write a topic for it, I prefer to solve any unknown issues first. That is where you guys might come in! Just an example:(1) Passing arguments like you used to@ --CLIENT callServer("passingArguments", "arg1", "arg2", "arg3") -- SERVER function passingArguments (arg1, arg2, arg3) outputChatBox(arg1 .. " " .. arg2 .. " " .. arg3, client) end Just an example:(2) Calling back! -- CLIENT callServer( "calculation", 50, 100, function (value) outputChatBox("Value: " .. value) end ) -- SERVER function calculation (value1, value2) return value1 + value2 end Just an example:(3) Calling before a client has loaded his scripts! --SERVER addEventHandler("onPlayerJoin", root, function () callClientAwait(source, "testCallClientAwait") end) -- CLIENT function testCallClientAwait () outputChatBox("Yes this works!") end Thank you @Xwad and @JeViCo for early testing! Repository: (+ download) https://gitlab.com/IIYAMA12/mta-communication-enchantment [NOTE] The documentation on the repository is not 100% complete. Direct download link: [NOTE] On the repository there is syntax highlight https://gitlab.com/IIYAMA12/mta-communication-enchantment/-/archive/master/mta-communication-enchantment-master.zip
    2 points
  2. /\ / \ / \ / \ / \ ---------- For those who have already downloaded the tool I post. I found and removed a critical bug in it, which had to do with calling back the client. While testing (alone) I didn't notice that it was sending information back to all clients instead of the one that should receive it. My apologies about this. Change in the source code: https://gitlab.com/IIYAMA12/mta-communication-enchantment/commit/c425481b5e49da3ff4aab9b5552795e2f2563e98 It is recommended to re-download the tool in that case. NOTE: I will not make feature announcements here, only critical bugs. Re-download
    1 point
×
×
  • Create New...