Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/11/21 in Posts

  1. Remove the sub table. This is a table: {}. And in your code you have 2 of those. 1 main table and 1 sub table. In here is the sub table you have to remove: {svgCreate(400, 200, "assets/media/roundedRectangle.svg")} You only want the value of svgCreate in your main table.
    2 points
  2. Hello Hydra, do you know about the onSettingChange serverside event? Whenever you change the outputNewsTimer setting, either through the admin panel or programmatically inside of your own resource, this event will be triggered with the "outputNewsTimer" string as setting name, the old and new values. Inside of the event handler you should change the timer period by killing the old timer and setting a new one using the same closure/function (showMessages). You are saying that it does not work "when I change the values". I assume that you do not mean that the actual script stops working, but that you are not seeing the intended change in resource behaviour. But in the script that you have provided you do not command the Lua environment to perform the change so if you do not use the event handler that I have recommended it is working without bugs but not like you imagined it.
    1 point
  3. Hi, welcome to the forums! Your thread has been moved to a more language-specific section so you can get better results in your native language.
    1 point
  4. Thread has been moved to a more suitable section.
    1 point
×
×
  • Create New...