myonlake
Members-
Posts
2,312 -
Joined
-
Days Won
41
Everything posted by myonlake
-
Not possible. You can only add two variants. https://wiki.multitheftauto.com/wiki/Vehicle_variants bool setVehicleVariant ( vehicle theVehicle, [ int variant1, int variant2 ] )
-
Your code is weird. You are checking a string against an integer, which is not possible. And you are also forgetting to check the values in case they are strings or less/more than 0-9. Client-side addEventHandler("onClientGUIChanged", root, function() if source == rog_modshop_colors_edit_red then local t = tonumber(guiGetText(rog_modshop_colors_edit_red)) if t then if (not t >= 0) and (not t <= 9) then outputChatBox("Modshop: You are only allowed to use 3 characters, of 0-9.", 255, 0, 0, false) end else outputChatBox("Modshop: You are only allowed to use 3 characters, of 0-9.", 255, 0, 0, false) end end end )
-
It doesn't crash for me or my server players, so I don't know what to say.
-
Most of them work, you have to test them out unless someone has a great answer.
-
You can only steal client-side stuff. It's not much to do with when the code is triggered and handled server-side, and the only thing done client-side is the rendering. You still have to script everything else yourself...
-
This is kinda basic stuff for those who have to deal with website encryption everyday - for example myself. But I am glad you are making it available for download and I am happy to know that someone else thinks the same way as I do ;P You could make it so that everytime the player logs in or joins the server, the key will change to a new one and so on, you probably know what I mean. That would improve the security on the client as well, even though it is kind of "impossible" to decrypt the password (nothing is impossible, if someone is able to use a super-computer and run though millions of queries testing the password OR has ability to use the client's computer, then it's decrypted in no-time). But not saying that this isn't a better system than other systems out there available for download on community or GitHub or so. Good job
-
People want to compile their work for their own reasons. If you didn't want to use the code, you wouldn't check its code and see if it's compiled or not. So basically you are offending some people around here who want to compile their work for different reasons. - It looks fine, but you should've added a synchronization to all clients, rather,
-
viewtopic.php?f=108&t=40793 https://github.com/mabako/mta-paradise
-
I am not trying to block the team to not add this feature, but it can be very easily obtained by wrappers. Does it have to be global? What's so wrong about exported functions? Almost all professional scripts use exported functions.
-
MTA Team doesn't have to make it an event. You only use wrappers for such, just like Anderl showed. It works perfectly.
-
These events are not useful, since you can make your own event or function doing whatever you want. I don't think these events would be used in much of scripts at all.
-
Yes, of course. But remember to initialize the variable outside the functions first so it'll return something else than errors. Remember to break the while-loop.
-
If you have a fire element to be attached, yes. You have to download a custom model for a sword. Otherwise you can use Katana for such.
-
You mean you want to move the GUI off from the screen instead of just forcing it with destroyElement? You could use the arc_'s animation library or then you can invent your own function for it.
-
It should be possible, but you will also need client-side synchronizing with some functions from over there. I just woke up so I can't recall which functions do you exactly need for such, but I guess it's possible.
-
It's the same thing as SQLite pretty much when it comes down to functions.
-
??? can u take pic plz im new here https://wiki.multitheftauto.com/wiki/Server_Manual Don't understand that? Don't begin with servers.
-
If he didn't try to make scripts then how he will learn ? You don't have to use Multi Theft Auto to make Lua scripts. I can see that you have no idea what other people put into the scripting language, while you just sit around and read the Wiki as you try to find useful functions and events. Here is a Demo Compiler: http://www.lua.org/demo.html And the tutorials: viewtopic.php?f=148&t=40809 Go play with your toys, kids.
-
You are correct, however, that link gives me some information I need for some small integrations with Lua and C++. I'll be looking around the web and YouTube if there are some socket transmission and catching tutorials or so. I'll edit the post if I have succeeded somehow
-
You are wrong. You can run servers from your own computer without having to pay anything else than the electricity bills.
-
oh yeah, right! See it now. It is in the Line 22-25 in the race_client.lua Looks good, like I wanted: http://i46.tinypic.com/izvqcl.jpg THX btw. what does the client download, when I get on a server? It downloads all client-sided scripts, fonts and images - basically everything related to the client-side stuff. You can find them from here: MTA San Andreas 1.3\mods\deathmatch\resources
-
That is a damn great link - thank you ^^
-
Hey, I am just asking is there an alternate way to make Lua connect with an external C++ program. I am trying to make an administration panel, which can be viewed on desktop and when someone reports a player in-game, it will be reported to the program the admin is using (not necessarily in-game when a report is sent). So, should I use a module to connect an external program or is there another way? PS. This post most probably doesn't make any sense.
-
Most of us use the Notepad++ program, which supports a bunch of languages, not just Lua. http://notepad-plus-plus.org/download/v6.2.3.html You can also use 50p's own Lua scripting program, designed for MTA. viewtopic.php?f=91&t=24834
