-
Posts
742 -
Joined
-
Days Won
16
Everything posted by Tails
-
Another issue, we can't edit posts if someone else posts after it.
- 84 replies
-
- mtasa
- forum stuff
-
(and 5 more)
Tagged with:
-
Looks nice but a couple of problems! I lost 3-4 pages on my cinema resource topic, including the original post and possibly other topics too. The links in my signature are all pointing to this topic. There's no button at the top of the forums to show all my topics/recent posts. Please fix. Thank you
- 84 replies
-
- mtasa
- forum stuff
-
(and 5 more)
Tagged with:
-
Is there any way I can cancel the fetchRemote function? This is really important because sometimes I want to prioritize other calls because the call is either taking too long (large download) or I simply just want to cancel it. I couldn't find anything useful on the wiki. Thank you!
-
Either sound urls or image urls, I need to get the dl status of these files or any file really. I couldn't find such a thing for the fetchRemote function.
-
Colshapes are elements right? Put a colsphere on the player and use IsElementInWater to check whether the colsphere is hitting water.
-
Any luck?
-
Are you running the server on your local computer? Also it really does seem you need to update it regardless if you think it's already 1.5.2 because it might be a different build. Use the installer on the frontpage (http://www.mtasa.com), preferable change the folder location for a clean install, then move over your settings, databases, resources etc. If you're running your server elsewhere, then contact your server host to see if you can get the latest update.
-
What do you mean with it only worked on your local server? The reason you probably can't connect is because the Google API only supports https and your server doesn't support it or has it disabled for some reason. Mta only supports https since version 1.5.2. So make sure your server is indeed running 1.5.2. Type in ver in your server console to see which version you're running. If it is 1.5.2 then I can only suggest you try to reinstall the server and see if that helps anything. If you happen to be running your server at Vortex Servers, we had one person reporting the same issue to us and was running a server at Vortex. When he tested it on his own local server, the resource was working fine. Let me know if it helps or if you're still having issues so we can look for a solution.
-
My script was working when I tested it.
-
Shit, I don't know man.
-
Yeah, why not?
-
Maybe try and fix it on your own. This will probably be useful to you: https://wiki.multitheftauto.com/wiki/Resource:Race
-
Updated to version 1.0.3: - Fixed a bug where players couldn't vote after two players had voted to skip with 3+ players in the room. - Updated help in panel and in help manager (f9) Download latest version now
-
You could do itemText = itemText:sub(10) which chops off the string at the 10th character.
-
Ah I see what you mean now. I don't have much experience with it myself, I've tried to edit the framework before and failed badly. Only managed to make some small changes. However, you can use the functions I mentioned in my other post, in your own script. For example, myList = dxGrid:Create(852, 298, 391, 628) function onDxClick(button,state) if button == "left" and state == "up" then if getMouseWithinPos(852, 298, 391, 628) then local selectedItem = myList:GetSelectedItem() if selectedItem == 0 then myList:SetVisible(false) end end end end addEventHandler("onClientDoubleClick",root,onDxClick) And this neat little function that I use in all my scripts (or variations of it at least) function getMouseWithinPos(x, y, w, h) if isCursorShowing() then local srw,srh = 1280,720 -- change to your resolution (same one as in the dxGrid lua) local cx, cy = getCursorPosition() local cx, cy = cx*srw,cy*srh if cx >= x and cx <= x+w and cy >= y and cy <= y+h then return cx, cy end end end Note the srw,srh in the getMouseWithinPos function. It's to make the click positions match up with the gridlist, since the gridlist click positions are setup the same way. This function only works in this particular situation. If you want it to work for your other scripts, you have to make your dxGui relative first or replace the first line with srw,srh = guiGetScreenSize() but then your clicking position will be off on different resolutions. Scripting dxGui can get pretty complicated (I'm still learning more about it), so I hope this doesn't confuse you. Let me know if you need more help.
-
Timers are easy. The rest as well but you don't need them for this. Try doing setTimer(function() -- your code end,300000,1) The code inside this timer gets triggered after 300000 milliseconds or 5 minutes, and it's only triggered once. You can make an event for when the ped dies and trigger the timer with it.
-
This wiki might help you get you started: https://wiki.multitheftauto.com/wiki/Sc ... troduction Or look here: https://community.multitheftauto.com/in ... =resources There are lots of resources on there. You're welcome.
-
Haven't tested the script but I had a look at the code. outputChatBox( "ERROR: Since you or someone else killed the trader, you can't buy a driving licence. Ask an administrator for help." It's probably better to make the ped respawn after some time if it dies.
-
Yeah, I made a small test browser and I had the same issue. It seems that some of the events sometimes return more than just one page so it can make it a little difficult for you. Maybe you can look at the official webbrowser resource that comes with the MTA server, to see how they did it.
-
Explain in detail what you did so we can help you better. What tools did you use to apply to the textures and convert the model? I'm assuming you're using 3dsMax, so try this (with kam's gta tools): 1. 2. 3. Export
-
I just need a way to tell how much has been downloaded from an mp3 url.
-
Hi AlvarO, Check out this wiki for his framework: https://github.com/t3wz/dxGridlists/wiki To do what you want, you can use these: Events: onClientClick Functions: SetVisible() GetSelectedItem() Let me know if you need any help with them. You can also check the code of our Cinema script where we use the same framework. Also, I'll warn you, There are some nasty bugs in this framework, mainly with the way the items are handled. For example, if you have a full list and delete an item from the bottom, it'll create an empty space at the top of the gridlist instead of at the bottom. It's weird and it screws up the entire gridlist and the information each item holds. To avoid this we just refresh/clear the gridlist each time an item is removed or added (using a table) then we add everything back in. I haven't reported it to t3wz yet.
-
Move the player out of sight of the objects then warp them back.
-
Hello mta ppl, I'm working on a new project and I need to get the download status of a url that is streamed with playSound. I got a progress bar going in dx and I want to add another one on top to see how much has been downloaded/buffered. So I need to know which functions to use for that. I looked through the wiki but couldn't find anything useful. Any help is appreciated! Thanks
-
Are you running the server at home?