Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/02/23 in all areas

  1. Hi, new here For about 10 years now I have wanted to set up an MTA server. I know nothing about scripting and all of this is a bit out of my expertise. I found a playlist on YouTube about learning to code with MTA. I'm on the first video and although I have followed everything done step by step, I get a black screen when trying to join and my map editor doesn't work. Thankfully I didn't do anything with the actual MTA files or I wouldn't be able to finish the map off. I'm new to all this, confident I can set it all up but like stated above, I'm stuck on the first bit which is really starting to annoy me. Here's the video https://youtu.be/Goqj5knKLQM?list=PLY2OlbN3OoCgTGO7kzQfIKPj4tJbYOgSR All help is much appreciated!
    1 point
  2. Just a side note (you probably already know this: this can be the same as source, but it doesn't have to be. For example here: local myButton = createButton(0.5, 0.5, 0.1, 0.1, "Click me!", true) addEventHandler("onClientGUIClick", resourceRoot, function() outputChatBox("Button clicked!") end) this is always resourceRoot While source in this set-up is always a GUI element of this resource. For @Xwaw See image below, is the element tree, where you can see some of the main parent elements in MTA. root at the very top is the parent for ALL elements within your game: This includes players, resources(resourceRoot's) > maps/'scripted created elements' and everything that hangs directly under those. resourceRoot is the main parent of each resource. Which can be used to listen to events created by elements that are part of a specific resource. Info: https://wiki.multitheftauto.com/wiki/Element_tree
    1 point
×
×
  • Create New...