-
Posts
636 -
Joined
-
Last visited
Everything posted by 'LinKin
-
I'll try to use it client-side.
-
I know nothing about PHP. And yeah. I have this server-side fetchRemote(theURL, callbackFunction_Handler, "", false, thePlayer) function callbackFunction_Handler(responseData, errorNumber, thePlayer) if(errorNumber == 0) then triggerClientEvent(thePlayer, "onServerReceivedImage", resourceRoot, responseData) else outputDebugString("FAG-CHART: Callback Failed! Error Number: "..tostring(errorNumber).." for: "..getPlayerName(thePlayer), 0, 187, 0, 0) end end Just like the script of Dealman (Btw, thanks for the comment ) I would really like to have this 'lag' thing fixed. Because the chart is what makes this script different from others. Do you know someone who knows PHP?
-
Hello, I'm using this script: https://community.multitheftauto.com/in ... ls&id=8567 I'm using it into a stats script which shows a graph of wins, 2nd, 3rd, and 4th+ finished positions in a race. The thing is, I've noticed that the server lags when the players are checking and requesting these charts.. Is there any solution for it? Maybe upgrading some server's features? (Idk which ones). This is an screenshot of it:
-
Hello, So I got a VPS. And I'm testing stuff with it. I've installed a MTA server, following this guide: https://wiki.multitheftauto.com/wiki/In ... _GNU_Linux It's ok, I can connect to the server, etc. But there's one thing.. Where are all the default resources? When you buy a server from a hosting company they give you a default server, it has some resources, mine doesn't have any at all. in the mods/deathmatch folder there are the following files: acl.xml dbconmy.so deathmatch.so mtaserver.config vehiclecolors.config How / Where can I obtain the default resources? Thanks. + I had founded a good tutorial and there was the answer of what I was looking for. But now I cannot find it back! I lost it
-
Yes but if I write #FF0000F (One extra F at the end) it will still be true, thus it'd fail.
-
Have you heard about OVH?
-
Hello, I want to check if the thing that a player writes is a hex color. This is the code I have addCommandHandler("color", function(p,c,color) if string.match(color ,"%x%x%x%x%x%x") then outputChatBox("You've written a colorcode", p) end end) But, for example if I type /color 00FF00Hola. It will be true, thus it will say I typed a colorcode.. How can I make it so that it ONLY works if what I type is 00FF00 - Not 00FF00Hola or mthElse00FF00. I tried if color == "%x%x%x%x%x%x" But it didnt work.
-
When you say "Comes with MTA" what do you actually mean? I searched for msgbox in the community.. Is that what you refer to? Because that's nothing..
-
Hello, Is there some function that displays a confirm dialog? (That Yes/No window) Or do I have to create manually? ´ Thanks.
-
I know that I gotta modify tl=en But what I want to do is to try other english voices/acents. I remember I had tried tl=gb and tl=au (long ago). And they were working.. But now they don't work. Only with tl=en
-
Hello, I want to buy a VPS, I'd rather west locations, such as UK,NL,FR (Where UK is the most preferable one). I have seen OVH and domVPS - Both seem to be ok (Of course OVH is a well-known brand). Apart from the location, the price is also important. I want to find a good VPS but not at insane prices. I want to explore more options. Do you know some? Thanks
-
? I thought it worked with a link, just like: http://translate.google.com/translate_tts?tl=en&q=Hello! I don't understand it.. I gotta download a script called "speak.pl"? Sorry, I'm really lost.
-
Hi, you might know google's text to speech. Someone made a script for that and shared it in the community. Today I was trying it, works fine, but do you know some other choices of english speech? So far I just could find one.. the standard english which is "en". I tried "uk" "gb" but it didn't work.. So, does someone knows other types of english voices? Thanks.
-
Hello, I've a GUI. Some checkbox to toggle on/off the sounds in-game. (For example when someone dies I play a .mp3) So, I was wondering how to toggle them off.. Maybe setting it's volume to 0 ? For example this situation: I'm playing a 1min long sound, at the beginning the player has it's checkbox unselected, so the sound will not be heard by him. But in the middle of the sound (sec 30) he selects this checkbox. So he would be hearing the sound at sec 30. I'm thinking about working with the volume.. hm, but maybe is there any other way? Thanks.
-
Use getPlayerPing (Ln. 59) Check out your script.. It is a total mess So much useless / repeated stuff
-
Hmm, I remember some function that was smth like this: getMapsCompatibleWithGamemode(getRunningGamemode()). Also, how to sort them alphabetically?
-
Hello, I want to make a GUI so that it displays a list of all maps compatible with Race gamemode. (Only Race). Which stuff should I use to get those maps? Also, to order them alphabetically in the GUI. Thanks.
-
Hello, I've a table. myTable = {} And I add it things like this myTable[1][1] = somePlayerNick myTable[1][2] = thePlayerElement .. Many rows Then, to clear it I'm doing this: for k, v in pairs (table_RealNames) do table_RealNames[k][v] = nil end BUT. It's messing it up! So then I did this to clear it: myTable = {} Someone told me once that way was good too, but, is the the BEST way? That person told me that LUA's garbage collector would clear the old table's position in memory in the next cycle. But hm, are you very sure? I just want to make things as they must be. The best way Thanks
-
Hello, Is this ok? local myVariable = myTable[row-1] or myTable[9] I want to return a string according to a number. I have these strings saved in a table. Which lengh is 9. So for example if the row is 11, it will try to look for the string stored in myTable[10] but it would be nil. So I want it to return the 9th String if the row > 9. Thanks.
-
Thanks. It's working, but let's say not 100% When your car is upside down or is likely to be, it gets on fire. That script works just if really it is upsidedown, but, if you're on these positions: http://postimg.org/image/h67kc9xlb/ or http://postimg.org/image/zdzszfbdb/ It doesn't show it's upsidedown, but still, it will get on fire. http://postimg.org/image/4q0qi0ne5/
-
Hello, How can I know whether a vehicle is upside-down or not? getElementRotation? This is what I get from getElementRotation, Y and Z are different while X wouldn't matter. North: http://postimg.org/image/5z0ifub8t/ South: http://postimg.org/image/fm8m3atm5/ West: http://postimg.org/image/f82opyk4t/ East: http://postimg.org/image/5xqkmf9f1/ Has anyone made a function to return if the vehicle is upside-down? If not, I think it'd be useful if someone did it. Thanks, - LinKin.
-
Oh well, Ok But I've done it this way: And I think it's pretty the same.. addEventHandler("onClientElementDestroy", root, function() if source == currentSound then canPlay = true if #soundQueue >= 1 then local nextSnd = soundQueue[1] if nextSnd and getElementType( nextSnd ) == "sound" then setSoundPaused( nextSnd, false ) table.remove( soundQueue, 1 ) currentSound = nextSnd end end end end) Took it from here: https://forum.multitheftauto.com/viewtopic.php?f ... 3&p=398931
-
Thanks. Got the idea but look. This is the event to use, and it's only from 1.4 ONWARDS. onClientSoundStopping Hmm, I will try another way. I will tell you if it works
-
Hello, I'm using playSound function. So it plays a sound when something happens in game, but, there exists the possibility that 2 events are triggered with a veery small difference of time, so I think that the sounds would mix up. Meaning that the player will not hear clearly. How could I avoid this? Like, just when it finishes playing the first sound, it starts to play the other one. Thanks.