![](https://forum.multitheftauto.com/uploads/set_resources_22/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
Dealman
Members-
Posts
1,421 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Dealman
-
If you want help in the future, you can at least try to be a bit appreciative when someone is trying to help. There's no need for such dis-respectful behaviour. And for your information, vehicles in MTA has a very unique health system. Maximum health is indeed 1000 for vehicles, if you set it to, I believe it's either 250 or 200 - the car will start to burn - and then blow up.
-
Read about the addCommandHandler arguments once more. function SpawnHunter(player, cmd, wep)
-
In what way is that a better way of doing it? It is miles worse, that created a sound element in a 3D Environment. Only people close to it will be able to hear it unless you use setSoundMaxDistance. Which is a big inconvenience if you want the song to play for everyone when the map is being played. I made a improved music script for maps a while ago, I'll see if I still have it around. I'll edit this reply if I do. Edit: Found it, copy and paste this to a file. You can name it whatever you want. I would suggest "Music.mp3" to simplify things. Code; If you need any help to make changes to it, don't hesitate to ask me. I'd be glad to help! Make sure you name the music file to the same as the script or the other way around. Also remember that it is case-sensitive!
-
You should look up how the GUI Hierarchy works. By default, when a parent is set as disabled - the children will be as well. In this case, your button is a child of your Image. Therefore when you disable the image, the button will be disabled too. And if your button is not a child of your image, it will be brought to the back if you click on the image.
-
Why get the screen resolution with every frame? Enough doing it only once.
-
Might be able to disable it with toggleControl.
-
Correct me if I'm wrong, but while in the editor - when you press E, your crosshair should become red. Doesn't that help in selecting otherwise un-selectable objects?
-
getPedTarget Edit: Just re-read and post while not in zombie-mode. You'll want to take a look at the Editor since it returns the object ID when you're looking at it with your mouse.
-
Custom textures, not all that hard to do. A few searches on Google and you'll get what you need. engineLoadTXD engineImportTXD
-
setAccountData would be the choice to go with as Element Data is not permanent, where as Account Data is. For example, if you use setElementData on a player, that data will be lost when the player disconnects.
-
Appreciate the answers, but I no longer need help with this.
-
Depends on what you search for. What you said is tremendously exaggerated, I had no trouble at all to find good stations for my radio. In fact, I didn't find a single one that didn't work. The only trouble I had, really, was that some radios didn't provide a proper URL - but instead forced you to use some java app to listen to it - and I didn't manage to get the URL from them.
-
HIP-HOP/RAP OR GTFO. I primarily made this for my own usage but due to feedback I decided to release it. As mentioned, it is open-source and you're free to modify it in whatever way you deem fit. Whether to add more channels or change something else. I think I did a big move enough to add Dubstep, I had to take a shower after that. Jokes aside, I primarily added what I wanted and what got requested. I then released it as-is. I had plans to update it and make the library XML based - but I'm currently busy with work, so I won't have time to do that for a while.
-
For internet radios there's this(A quite wonderful and handy website to use); Google And for functions, you can use this website; MTA Wiki There really is no need to make threads like this, when all you need is Google and the MTA Wiki. It's really not that hard to use the MTA Wiki. Ask yourself things like this: What are you trying to create? - A Radio What kind of functions will you need? - Sound/Audio Open the MTA Wiki and look under Client/Server Functions, do you see anything related to Audio? - Yes. If you had just spent a minute doing this, you wouldn't of had to make this thread.
-
That's not even the slightest helpful since he wants to work with DX, not GUI. 2 very, very different things. You can achieve what you want with interpolateBetween.
-
Maybe fileOpen has to be used before-hand? I haven't really worked with those functions before, so just throwing a suggestion out there
-
I don't see why it wouldn't work, the end result is the same either way. The files contain the URL to the actual stream - that's how they work. So having the direct download to the file should not be necessary. Hence that I said shouldn't. If it does indeed require you to, that means streaming is very poorly supported within MTA. I haven't actually tried storing the files locally - but I can't see why they wouldn't work.
-
What the excruciatingly sexy guy above me said will work absolutely fine for just that!
-
If you're hosting a server, you'll have to login with sufficient privileges to be able to start and stop resource. You press F8 to open the in-game console, where you can start, restart and stop resources. Simply type, for example; "start TestResource" You can also do this via the server console, this way you won't have to log in. You can also do it in the Map Editor without having to log in. The MTA Wiki will be your best friend. Start with something simple and go from there, don't start right off the bat with a RP Script. Then you'll most likely get stuck a lot. You'll also want to check out the GUI Editor. Any questions, don't hesitate to throw me a PM. I don't use Skype however, I bloody despise that software
-
I'd highly recommend you not to use FRAPS since that software is way old and out of date. I'd instead recommend DXTory as it records better, has more options to tailor it to your liking and it doesn't have anywhere near as big an impact on your performance as FRAPS do. And like Driggero said, you can utilize setCameraMatrix to get shots like that. Simply use some invisible marker or colshape. Whichever pleases you. Atoms aren't even remotely near the size of an pixel. You might wanna read this
-
You need to add the event. Refer to the MTA Race Wiki for more information. addEvent("onMapStarting", true)
-
You could easily google to find out how to work with tables in LUA. There are multiple ways of achieving what you want. It's just a matter of what you prefer and what you find the most efficient. Alternatively you could take a look at the Radio I made, since that uses a table for streaming internet radios. You'll need to modify it a bit, of course. But should point you in the right direction.
-
I believe he means guiCreateTabPanel, and not a label.
-
The error points out what is wrong and where. Read it, and you'll be able to fix it. You forgot to end the last function. I'd suggest you use a program such as Notepad++ as it will display the connections.