Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/08/22 in all areas

  1. Hello @Seza and welcome! I'm moving this to the Scripting section as it's more suitable so you can get better assistance.
    1 point
  2. Moving this into the scripting section.
    1 point
  3. if you're use mta browsers yes you can try this example JS function onEvent(event) { if (event == "test") { console.log("Test event triggered!") mta.triggerEvent("myLuaEvent", "arg1", "arg2") // trigger lua event else if (event == "test2") { // more stuff } } Lua executeBrowserJavascript(browser, "onEvent('test')") addEvent "myLuaEvent" addEventHandler("myLuaEvent", browser, function(arg1, arg2, ...) print(arg1, arg2, ...) end) Don't forget to set development mode to web setDevelopmentMode(true, true) Then type /debugscript 3 use html forms
    1 point
×
×
  • Create New...