Jump to content

Search the Community

Showing results for tags 'onresourcestart'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 2 results

  1. Olá estou querendo fazer que o dxDrawLine3D aparecer após ligar o script tentei de uma forma e nao consigui é a primeira vez mexendo com o dxDraw fico agradecido a quem me ajuda function lineaeropuerto() dxDrawLine3D(1492.86328125, 1191.3876953125, 10, 1492.86328125, 1697.3671875, 10, tocolor(0, 255, 0, 255), 25)--verde dxDrawLine3D(1477.4365234375, 1223.2587890625, 10, 1477.4365234375, 1697.3671875, 10, tocolor(255, 0, 0, 255), 25)--rojo dxDrawLine3D(1462.0029296875, 1191.3876953125, 10, 1462.0029296875, 1697.3671875, 10, tocolor(0, 255, 0, 255), 25)--verde end addEventHandler("onClientRender", root, lineaeropuerto)
  2. Hello I'm creating a script that will trigger an event if a resource started. Serverside addEventHandler("onResourceStart", resourceRoot, function() local accResource = getResourceFromName("accounts") if (accResource) then outputServerLog("Initializing account resource.") startResource(accResource) -- start another res here else shutdown("Didn't find a required resource 'accounts' from the server. Shutting down...") end end ) Clientside function initStartup(resource) --outputChatBox( getResourceName( resource ) ) if (getResourceName(resource) == "accounts") then triggerEvent("accounts:initStartup", localPlayer) end end end addEventHandler("onClientResourceStart", root, initStartup) The problem is on the clientside, the 'accounts' resource isn't started. But, in server the 'accounts' resource has been started. So i cant trigger the "accounts:initStartup" event. I have no idea why, so maybe someone can help me, thanks
×
×
  • Create New...