Jump to content

Search the Community

Showing results for tags 'addevent'.

  • 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. I'm trying to make simple job. When player hit the marker this error pops up in debuscript 3. I'm just learning Lua and I don't know how to fix this error. Error: Server triggered clientside event, createGui, but event is not added clientside meta.xml <meta> <script src="server.Lua" type="server" /> <script src="client.Lua" type="client" /> </meta> client.Lua local gui = {} okno = guiCreateWindow(0.35, 0.26, 0.16, 0.45, "Praca GAZECIARZ", true) guiWindowSetSizable(okno, false) guiSetVisible(okno, false) button = guiCreateButton(0.16, 0.56, 0.73, 0.39, "", true, okno) addEvent("createGui", true) function openGui() outputChatBox("Test2") guiSetVisible(okno, false) end addEventHandler("createGui", resourceRoot, openGui) server.Lua function createSomeMarker() createMarker(-2442, 754, 34, "cylinder", 2) end addEventHandler("onResourceStart", root, createSomeMarker) function markerCollision (markerHit, matchingDimension) if matchingDimension then outputChatBox("Test1") triggerClientEvent("createGui", resourceRoot) end end addEventHandler("onPlayerMarkerHit", root, markerCollision) Thanks for the help!
  2. Hello, I need help with interfacing from client to server and vice versa. Kindly someone explain it with an example. I read the example but I didn't get.
×
×
  • Create New...