-
Posts
731 -
Joined
-
Last visited
-
Days Won
2
Everything posted by koragg
-
@IIYAMA thanks for telling that nice comment shortcut But is there a way to uncomment the selected lines with some key combo?
- 10 replies
-
- 1
-
-
We don't see such topics here every day, I've never seen any similar to be honest. People like to hide behind their computers and talk :~ to and about others. They feel so mighty but in real life they're probably sad bastards with no friends or with social problems. Don't let anyone from the Internet make you feel bad. We play games to relax and have fun but with you it sounds like torture at this community. For any real life threats you should talk to your parents, friends and go seek your rights. And about scripting for MTA, you could start off by downloading resources from the community and seeing how they work. Then try to edit small stuff or add new functionality to it etc. Then in no time you'll start creating your first function, first resource etc. If you've got the will to learn, the imagination to create and are interested in this then there's nothing that can get in your way. Good luck with everything!
-
I'm using setElementData with onClientRender to sync nitro in my server. There's no (noticable) difference from how it was before other than fixing my nos meter that is
-
You can't. They can only be used in single player. For mta you can try and make lua resources with the same or similar functionality. Just need a bit of imagination and it will work good luck
-
I guess i could try those ways when i start making lyrics on another song in a few days since I'm almost done with the first one, made in my way. Thanks a lot for the examples guys
-
Continueing in new files whenever the error comes fixes it. Well, it's easier if you know how to do it I'm not good neither with tables nor getTickCount() (idk when and how to use it). Thanks though, will have that in mind for the future.
-
I have each word in a separate function. So that way when i add an event handler to a function it shows just one word, not the whole sentence. Can't find an example on YouTube but i hope you understood me xd. I show each word on the screen exactly when you'd hear it in the song.
-
Would continueing in a new file fix the error? I mean if there is too much chunk in the current file I can just continue in another one Hope I can, if not rip....
-
Just today I thought I'd do a live lyrics script for a new map I'll be making later on. I wanted to make it all about Linkin Park's Chester Bennington as I really loved his songs and grew up with him, was totally sad when he died so suddenly Anyway, it all worked out awesome until I got a "chunk has too many syntax levels" error and...well...dead end. I googled it and nothing useful for my case came up. What's wrong with it? I won't post the whole code here as it's around 500 lines in this file but here's the part of it which gives the error: setTimer(function() addEventHandler("onClientRender", root, a111) setTimer(function() addEventHandler("onClientRender", root, a112) setTimer(function() addEventHandler("onClientRender", root, a113) end, 300, 1) end, 300, 1) end, 300, 1) The error gives the line inside the innermost timer (a113) as the culprit but it's the same as any other line in my code. Basically I use hundreds of timers to add event handlers and draw the dxtext with the lyrics on time. Please I really want to finish this map/project/script but am stuck with this error :\
-
So try to fix it by looking at how the one i sent you works... i never said you should use what i sent you, just that it works fine so you can try fix yours by looking at it.
-
Try to see how this is made, it works perfect: https://community.multitheftauto.com/index.php?p=resources&s=details&id=5028
-
Yes i know that's why it downloads slowly. But why does it download the same files every time even though they weren't changed?
-
Hi guys, so I noticed something very odd for me. Since I'm on a slow 4G hotspot right now it takes some time to download files from a server. But why do I get to download files which were never modified again and again on every join? Example: Download error: Error downloading requested files. Couldn't connect to server. [Failed to connect to 104.233.69.110 port 22005: Host unreachable] [race/img/specnext_hi.png] Why does it download that file every time I join my server when I've already downloaded it weeks ago when I first joined my server from this laptop? And it's the same with other files from 'race' and 'admin' resources. If your internet is fast it's no problem but for slow net 4MB can take some time to download, and it's not necessary as those files were not updated so shouldn't request a download in the first place. I searched for "fileDelete" at the end of scripts but found none so the files shouldn't delete themselves.
-
Shouldn't it be similar to the Kick one? I can't do code cuz it's 7am and I'm in bed but... 1. You click a player name in a grid in your panel. 2. You use 'getPlayerFromPartialName' to get the player with that nickname. Remember: this is a useful function so you need it's code from the wiki before using it. 3. Then you do 'setPlayerMuted' on the guy you just found in step 2.
-
https://community.multitheftauto.com/index.php?p=resources&s=details&id=14139
-
Required Arguments thePed: the ped you want to check. Try this: isPedInVehicle(localPlayer)
-
Thanks guys, I had an idea about something and wasn't sure if it would work. Now I know it wouldn't have but I managed to do it another way
-
Pretty much what the title says. If i use 'onResourceStart' server side does that mean that when a player joins late the function will get initiated for him?
-
Here's what i use. Look how it's done maybe, iirc it wasn't that hard. https://community.multitheftauto.com/index.php?p=resources&s=details&id=8008
-
If you still get that string error try to use 'tonumber'.
-
You can't use any lua scripts that way. They should be put on the server itself in order to work. And if you delete or modify some GTA files then you may not be allowed to enter many servers or if an admin sees that you go through trees for example he may ban you of the server.
-
Remove the scoreboard part from the end of the link. You'll get a login prompt so login with your in game admin account. Then go to Groups, Everyone and see if under Resources it's marked "All resources". PS: My web scoreboard just stopped working for some f***ing reason when i changed my server's IP (just shows blank page when viewed from html or that link i told you but is fine from the resource browser)... so i can't help more than this for now.
-
How do you get this error when you haven't used that function anywhere lol? [2017-07-14 08:00:42] WARNING: BigPlaneEnter\c_bigplane.lua:2: Bad argument @ 'getVehicleName' [Expected vehicle at argument 1, got nil]
-
You shouldn't do that. The html css and js files should remain in their original position in the scoreboard resource on your server. To access the scoreboard you need to go to this link: http://<serverip>:<httpport>/scoreboard/ You can find the http port when you open your mtaserver.conf file and the IP, well, is the IP of the server