-
Posts
851 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Noki
-
I noticed in an old thread where someone posted their mtaserver.conf, that there was an option for network encryption. I have a total of 3 MTA servers installed on my machine, all of which are iterations of 1.5. None of their mtaserver.conf files contain a network encryption parameter. I was wondering where this setting went? Is it still able to be toggled?
-
You will have to use dxDrawImage.
-
If it throws an error when you try to compile the script on the website, then you have a syntax error in your script. It works fine for me and it throws "ERROR" when I try to compile a file with a syntax error.
-
No, the file functions he is using return bools, file handlers or an integer representing a number of bytes either read or written. The only way "ERROR" could be returned is through fetchRemote.
-
The page on a web browser displays "ERROR" when the uploaded file has a syntax error.
-
Yes, you will be able to play MTA with your copy of GTA SA. However, before you do so, you will need to downgrade the .exe to 1.00. More information can be found in this topic.
-
There are pretty much two ways to go with the modelling aspect. Zmodeler or 3DS Max (with KAMS GTA scripts). You cannot use them interchangeably, so once you choose one, stick with it. If you wanted to create custom skins, you will need TXDWorkshop to extract the images from the .txd archive. Once extracted, I recommend a program like Photoshop, GIMP or Paint.NET to edit the images (the latter two are free). You can import your skins into 3DS Max to have a live view of them on the model, I'm not sure about Zmodeler as I've only used it a few times.
-
I think this belongs here. Anyway, great job! I was using Atom a few months ago and really liked it. I was bummed that no one here had added syntax highlighting support for MTA's functions. Glad to see it finally happened.
-
It means it's just created within a table. We know that tables have two things inside of them, an index (sometimes called key) and a value. Think of it like a dictionary. The book itself is the table. Then each word is a key, and its meaning the value. You have the word name (the index, which in our case would be the string, "window") and it's corresponding meaning (the value, which in our case is the GUI window). Now think of a variable like a small piece of paper that can only fit one word and one meaning. You write the word (which would be the variable name) and its meaning (which would be the GUI window). Unfortunately, you don't have enough space for anything else. A variable can hold one value (can be a table of multiple values, but we don't need to worry about that) and a table can hold multiple values within itself. The difference between your two piece of code is pretty much how you would access it later on. If I wanted to add a button to the first bit of code, I would have to do: guiCreateButton(0, 0, 0, 0, "Button", false, myGUI) However, if I wanted to add a button to the second bit of code, I would have to do: guiCreateButton(0, 0, 0, 0, "Button", false, GUI["window"]) myGUI and GUI["window"] are equal to the same thing. They both return a GUI window (if the function was successful and the GUI window was created). The only difference is how you made it and how you access the window.
-
The first argument of giveWeapon is who you want to give the weapon to. By default, root means all elements, everywhere. However, in the case of this function (giveWeapon), if you use root, since it is every element, it will only trigger on the player elements (which can be visualized in the element tree). You can put any other player argument in there. I could put: giveWeapon(getPlayerFromName("Noki"), 27, 100) -- Gives it to a player with the name of 'Noki' -- or giveWeapon(getRandomPlayer(), 27, 100) -- Gives it to one randomly selected player -- or giveWeapon(root, 27, 100) -- Gives it to every player
-
Look at that anti-virus message. Try to add an exception to MTA (the installer, D:\GTA San Andreas and the MTA directory), then run the installer again, but this time as an administrator (Right click on the file > Run as administrator).
-
Posting your problem and your solution would be helpful. This subboard acts as an archive, so if someone faces a similar problem in the future, they can refer back to a thread and hopefully find their solution. I know it has been of help to me in the past.
-
As far as I know, the reason scripts cannot be automatically compiled is because they would need to include the encryption key with the application itself. Of course, it wouldn't be in plain sight, but it would be there. This exposes the risk of someone finding the key through means of reverse engineering. It is a lot safer for them to not run this risk, and that is why we have luac.multitheftauto.com. Another way to ensure your scripts cannot be decompiled (I have tested this myself a few times, feel free to dispute) is to write them in OOP or use the old nested tables trick (local anticompile = {{{{{{}, {}, {}}}}}}).
-
You can bring one object a little further forward than the other. I'm not talking of moving it a large amount, maybe just 0.09 of one GTA unit. That usually solves it for me. Otherwise you can place another object on top of the overlap and make that object non-collidable.
-
Very nice list, Aimcac.
-
Bump
-
I don't know how to do that, sorry.
-
Using root as the first argument will give it to every player on the server. You should use client on the server-side (assuming you will do what Hungry said and trigger events).
-
Yes, when you create your spawnpoints using createSpawnpoint (spawnmanager/spawn.lua - line 6), just specify the skin as the ID of your default skin to 0. exports.spawnmanager:createSpawnpoint(0, 0, 5, 90, 0 --[[ CJ skin ]], 0, 0) That will create a spawnpoint at 0, 0, 5 (center of the map), rotate the player 90 degrees, spawn him with the CJ skin and put him in interior and dimension 0.
-
setElementModel If a skin is still being given randomly and the code is not working, I take it you are using the freeroam resource? My guess is that would be overriding your code.
-
My bad. I just had a quick glance and assumed that was the one. It seems this was the one you were looking for, but unfortunately it is suspended. I would suggest getting in contact with him via YouTube (or seeing if he has a forum account here) and negotiating a release of that resource.
-
https://community.multitheftauto.com/index.php?p= ... ls&id=5946