-
Posts
2,973 -
Joined
-
Last visited
-
Days Won
3
Everything posted by 50p
-
Dirty him more. Look at my clown on the previous page.
-
If only admins can create missions he must be one of them because normal players wouldn't know how it works if it's only for admins. Why don't you ask Simbad then, Nonameman?
-
The tooltip you see on the screenshot is the same as the one in VS. Check it yourself, when you start typing name of a function it will show you the list of functions (starting from the one that matches the characters you typed in). You can then scroll through the functions, each one you select will show you a tooltip in this format: Once you double-click the function or you press Enter the function will auto-complete and then when you open bracket you will see another tooltip with this format: And I think you were talking about this later tooltip. The syntax highligher we used (a 3rd party lib) does have both types of the tooltips and I'll try to make use of the another one (the one you want). Options, currently it's what you see on the screenshots, I thought that many features could be turned off, eg. Image Viewer. For now I just want to finish this off before you release MTA, so I'm rushing. Me and Fenix had a little argument last night about this tool, because I want to get it done and he was meant to clean up the code about 2 days ago but he hasn't yet and said he doesn't like that rushing... So I'm cleaning the code myself. I don't know if he really cares about this project any more but he doesn't seem to be since I've seen him asking scripting question on IRC instead of helping me with SE. Anyway, I'm going to try to fix all bugs, add features and release this tool as soon as possible (before MTA's 1.0 release).
-
Where did you see such resource? If you can't find it here on the forums, nor on the community website then you probably won't find it anywhere because script authors want their scripts to be accessible to anyone and official MTA places are the best places to announce their resources. If you've seen such resource on a server then ask the server owner for that resource and he'll give it to you unless he doesn't want his resource to be available to public.
-
Can I laugh now?
-
I may send users to wiki by double-clicking function node on the right side of the main window. It may take you more time to open specific function from there but there is a search box so shouldn't be a problem. I'm not sure if double clicking function node should open a wiki page or add that function to the code, but I doubt anyone would like to add a function to the code when they have a list popping up.
-
An update about tooltip in the first post.
-
In nightly bulds (AKA 1.0) spawning players is more advanced than in DPs. If all you can see is the sky, it means the camera doesn't point at you, so you must change camera's target to yourself so camera can follow you. http://development.mtasa.com/index.php? ... meraTarget
-
1. Fixed it already. 2. I'm not sure of that. We may do the same thing as Notepad++ where you highlight a word and it's somehow highlighted in the entire file. 3. I'm planning to highlight the function of their existence. Client-side = red, Server-side = orange, Both = blue. 4. It wouldn't be highlighted. All of your questions/suggestions are linked to highlighting which I haven't done yet. Currently it highlights only Lua keywords, numbers, strings, comments, etc. But I'm hoping to get the highlighting working soon. http://www.puzzleframework.com/wikiengi ... aspx?ID=90
-
Bump! Updated screenshot showing the main application window and the "Changelog" section.
-
Yes, it's the same way to replace textures but you can't replace the models. Only custom objects and vehicles are supported, not pedestrians (characters). The word after "function" can be anything you like because it's a name of a function. You can then call this function from another functions or attach this function to an event (that's what you do with addEventHandler).
-
Check this post https://forum.multitheftauto.com/viewtop ... 18#p292835 and see for yourself.
-
Maybe I wasn't clear enough but usually when you debug your script/program you output what functions returned. For instance: viper = engineLoadDFF( "viper.dff", 560 ); outputChatBox( tostring( viper ) ); -- output what is viper, if it is false, then loading failed
-
Any errors you get? You don't want to reload new models every time resources start, so change getRootElement() to getResourceRootElement( getThisResource() ). Output some messages to make sure engineLoadTXD and engineLoadDFF didn't fail.
-
Check the executeSQLCreateTable. You can name columns only when you create a table.
-
1. I was going to make a GUI based meta.xml editor, actually, I made one pretty long time ago but when I asked what people think on IRC everyone said it was useless because everyone can edit meta.xml with notepad If they thought it was useless me and my good pal decided to make something that will be useful 2. That is an interesting idea. I'll think about adding such right-click exporting functions. 3. I knew it, I just knew it I may take some screenshot from game and make something out of it. Should remind MTA more than some random shapes 4. That is interesting, but we're using C# .NET 2.0 which may be disappointing you because you probably experimented with C++. Besides, I'm not sure if launching gta in a tab would be possible in C#. I know there are frameworks for DirectX and OpenGL for C# but they aren't "pro", I mean C# is a low-level programming language, it has limits. I must admit, I've experimented with those frameworks to try to make a GUI editor with CEGUI but I failed because those frameworks weren't supported by CEGUI. So I moved to C++ but MTA uses custom CEGUI and I couldn't even load the imagesets. 5. Cazomino05 has spent hours on creating .xml files for our application and we load those .xml files to fill up the right side of the window with functions and events. The files include function names, return values, parameters and description of the functions. After having a chat with Cazomino05 about those files we thought of using a wikibot that was running on IRC some time ago, I don't know why it was taken down and if we will implement that bot. About the HTTP stuff, I've been doing it all day I managed to send HTTP requests to MTA server with C# and call exported Lua functions. I decided to create a C# SDK for MTA so other people could make tools which connect to MTA servers but I'm having a problem with converting C# objects to JSON string. Currently I convert everything to string, so Lua functions receive only strings in their arguments. I would have forgotten, I'm having another problem with connecting to MTA server if it requires User Authentication (in other words, only gods can access web resources), I can send requests to resource that can be accessed by everyone on web. I've posted about that issue on gamedev.org forums about half an hour ago (HERE). Maybe you could help.
-
http://development.mtasa.com/index.php? ... _functions
-
SQLite is the fastest. You can also use MySQL module to use MySQL. Saving variables is silly in my opinion...
-
Why would you want to save variable names and their values inside xml file?
-
You need to make another resource which will restart this vehicles resource. Just put this inside the new resource which will restart the vehicles resource: addEventHandler( "onResourceStart", getRootElement(), function( resourceStarted ) if( getResourceName( resourceStarted ) == "vehicles" ) then setTimer( restartResource, 1800000, 1, resourceStarted ); end end ) Remember to give this resource access to restartResource function. Open acl.xml and find Admin group, add a node inside of that group: ... name="Admin"> .... name="resource.THIS_NEW_RESOUCE_NAME" /> >...
-
Ok, whenever you see this topic unread but you've read it already, it's most likely that I updated the first post (mostly "Changelog"). Currently, I've implemented a way to restart resources with just a click but what it does it swaps to console window and simulates user typing, so you can actually see the text being typed in... If someone knows a better way to send a string to console than please share this info, it would be much better if you could just send a string to console as if user typed it than simulate keyboard's keys state (in case you didn't know, that's C#).
-
Come back when you need something else. Someone will always be happy to help.
-
Try this: https://community.multitheftauto.com/index.php?p= ... ils&id=124 You can search this forum and you will find some other resources.
-
ambulanceVehicles = { [416]=true } ambulanceSkins = {[274]=true, [276]=true} function enterAmbulanceVehicle ( player, seat, jacked, door ) if ( ( ambulanceVehicles[getVehicleID ( source )] ) and ( not ambulanceSkins[getPlayerSkin ( player )] ) and ( door == 0 ) ) then cancelEvent() outputChatBox ( "Du darfst dieses vehicle nicht benutzen!", player, 255, 255, 255, true) end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterAmbulanceVehicle )
-
@DarkDragon: I have never managed to download resources from external http server so I haven't thought of that. We may include this but I'm not really sure about this. @robhol: We have this on our "To do" list. Just to let you all know, we have previously thought of uploading resources onto community.multitheftauto.com but we aren't really sure if we'll include this.