Quited Posted July 6, 2013 Share Posted July 6, 2013 (edited) hi all It's nice to be these functions and exist Functions: engineloadIFP cancelAnimations -- Important loadCustom ped.ifp , anim.img , gta3.imgAnimations (Animations in gta3.img file example rifle.ifp) getMTAsettings setMTAsettings getServerIP getModSize (The size of gta3.img and gta_int.img files) setCursorIcon (for custom Cursor Icon) fxAddGraphics guiCreateGIF guiSetButtonColour guiSetTabColour Edited January 3, 2014 by Guest Link to comment
Castillo Posted July 6, 2013 Share Posted July 6, 2013 setCursorIcon > Useless, you can set cursor alpha to 0 and draw your own. guiButtonColour > I don't understand this, do you mean the text of the button or the actual button color? guiTabColour > Why would you want to set a tab colour? cancelAnimations > What is this for? Link to comment
Quited Posted July 6, 2013 Author Share Posted July 6, 2013 setCursorIcon > Useless, you can set cursor alpha to 0 and draw your own.guiSetButtonColour > I don't understand this, do you mean the text of the button or the actual button color? guiSetTabColour > Why would you want to set a tab colour? cancelAnimations > What is this for? setCursorIcon for custom Cursor Icon cancelAnimations (example : cancel jump animation and other animations in ped.ifp , anim.img and gta3.imgAnimations) Link to comment
Castillo Posted July 6, 2013 Share Posted July 6, 2013 I already understood what setCursorIcon did, and I already said it's useless, because you can do it with scripting functions. Link to comment
Quited Posted July 6, 2013 Author Share Posted July 6, 2013 I already understood what setCursorIcon did, and I already said it's useless, because you can do it with scripting functions. ok , other functions ? Link to comment
CapY Posted July 6, 2013 Share Posted July 6, 2013 (edited) guiCreateGIF: https://wiki.multitheftauto.com/wiki/DxDrawGifImage getMTASettings: https://wiki.multitheftauto.com/wiki/DxGetStatus And the rest and/or most of the functions you can do via scripting. Edited July 9, 2013 by Guest Link to comment
Quited Posted July 7, 2013 Author Share Posted July 7, 2013 https://wiki.multitheftauto.com/wiki/DxDrawGifImage == guiCreateGIF()https://wiki.multitheftauto.com/wiki/DxGetStatus == getMTASettings() if you mean on the client settings. And the rest and/or most of the functions you can do via scripting. ok , cancelAnimations , engineLoadIFP and other ? Link to comment
ixjf Posted July 7, 2013 Share Posted July 7, 2013 Ok, let's see: engineLoadIFP: Look into the bug tracker and you will know why this hasn't been added yet. cancelAnimations: As for your example - toggle jump control off. loadCustom: Is it needed to repeat the same? getMTASettings: The name itself is ugly, dxGetStatus and getChatboxLayout should also do it. setMTASettings: No..? getServerIP: What's the purpose? getModSize: Once again, what's the purpose? setCursorIcon: setCursorAlpha + tracking mouse movement and drawing your own should do it. fxAddGraphics: ? guiCreateGIF: Maintaining lots of pictures for a single thing is not something I would like to do, an animated GIF (which is the only purpose of enabling GIF support here, I guess) is basically just a bunch of GIFs (they are lossy so I wouldn't use that image file type either) compacted into one - it is trivial and can be implemented easily in Lua. guiSetButtonColor: You could always render your picture as a button. guiSetTabColor: You could always create your own GUI library or implement customizable tabs using DirectX functions. Link to comment
Quited Posted July 7, 2013 Author Share Posted July 7, 2013 Ok, let's see: engineLoadIFP: Look into the bug tracker and you will know why this hasn't been added yet. cancelAnimations: As for your example - toggle jump control off. loadCustom: Is it needed to repeat the same? getMTASettings: The name itself is ugly, dxGetStatus and getChatboxLayout should also do it. setMTASettings: No..? getServerIP: What's the purpose? getModSize: Once again, what's the purpose? setCursorIcon: setCursorAlpha + tracking mouse movement and drawing your own should do it. fxAddGraphics: ? guiCreateGIF: Maintaining lots of pictures for a single thing is not something I would like to do, an animated GIF (which is the only purpose of enabling GIF support here, I guess) is basically just a bunch of GIFs (they are lossy so I wouldn't use that image file type either) compacted into one - it is trivial and can be implemented easily in Lua. guiSetButtonColor: You could always render your picture as a button. guiSetTabColor: You could always create your own GUI library or implement customizable tabs using DirectX functions. getServerIP purpose is to get server IP and has a many uses getModSize purpose is get Mod Size in gta3.img To verify that the files in gta3.img original or no "fxAddGraphics" add Graphics to Server (example : ENBSeries graphics) Link to comment
ixjf Posted July 7, 2013 Share Posted July 7, 2013 getServerIP: Define a variable with the server's IP. getModSize: Use onPlayerModInfo fxAddGraphics: No, use shaders. Link to comment
Quited Posted July 7, 2013 Author Share Posted July 7, 2013 getServerIP: Define a variable with the server's IP. getModSize: Use onPlayerModInfo fxAddGraphics: No, use shaders. i know , but if onPlayerModInfo include "getModSize" will be the better. Link to comment
Raahim Posted July 8, 2013 Share Posted July 8, 2013 about setting the colors, use dx. Link to comment
iPrestege Posted July 8, 2013 Share Posted July 8, 2013 Care to explain why? I think he meant the file size as example : 1.mb . Link to comment
فاّرس Posted July 8, 2013 Share Posted July 8, 2013 getMTAsettings = You mean this for meta.xml ? if the answer yes use , getMTAsettings = get setMTAsettings = set if the answer is not true Explain to me . Link to comment
Sora Posted July 8, 2013 Share Posted July 8, 2013 getMTAsettings = You mean this for meta.xml ?if the answer yes use , getMTAsettings = get setMTAsettings = set if the answer is not true Explain to me . nope i think he meant setting the client settings but most of his requests are useless .. actually i don't find something useful here .. Link to comment
CapY Posted July 9, 2013 Share Posted July 9, 2013 Care to explain why? I think he meant the file size as example : 1.mb . You don't say? We REALLY, REALLY wouldn't know that if it wasn't for you. Thank you for making it clear! Link to comment
DanHR Posted July 15, 2013 Share Posted July 15, 2013 What about something so we can easyly replace and ADD car paintjobs (mostly for custom cars, cause default one can use shaders) Link to comment
myonlake Posted July 16, 2013 Share Posted July 16, 2013 All of those can be done with the current MTA functions, unfortunately. engineLoadIFP is not available due to it having critical bugs and therefore is still an on-going project over Mantis. Link to comment
DanHR Posted July 16, 2013 Share Posted July 16, 2013 All of those can be done with the current MTA functions, unfortunately.engineLoadIFP is not available due to it having critical bugs and therefore is still an on-going project over Mantis. How can Custom cars get all the 3 paintjobs? D: And no, with shaders no, shaders will just replace car default body. Link to comment
myonlake Posted July 17, 2013 Share Posted July 17, 2013 All of those can be done with the current MTA functions, unfortunately.engineLoadIFP is not available due to it having critical bugs and therefore is still an on-going project over Mantis. How can Custom cars get all the 3 paintjobs? D: And no, with shaders no, shaders will just replace car default body. When it comes down to paintjobs on custom modifications, it gets a little more complicated than you think it would, however in my opinion it could be done - yet I am no expert in that expertise so I can't really say for sure, maybe I'll leave that to the developers. However, you can make custom paintjobs and with shaders put them on the vehicle like I do. Link to comment
DanHR Posted July 17, 2013 Share Posted July 17, 2013 All of those can be done with the current MTA functions, unfortunately.engineLoadIFP is not available due to it having critical bugs and therefore is still an on-going project over Mantis. How can Custom cars get all the 3 paintjobs? D: And no, with shaders no, shaders will just replace car default body. When it comes down to paintjobs on custom modifications, it gets a little more complicated than you think it would, however in my opinion it could be done - yet I am no expert in that expertise so I can't really say for sure, maybe I'll leave that to the developers. However, you can make custom paintjobs and with shaders put them on the vehicle like I do. Yes, i already made default sultan a Rally with shaders, but i have to find the way to add custom paintjobs to custom cars. Link to comment
qaisjp Posted July 22, 2013 Share Posted July 22, 2013 Now to finish off this despicable, rubbish topic by an inexperienced pathetic excuse for a scripter: engineloadIFP - A planned function since 2009 Nothing you do will change this. cancelAnimations - just use setPedAnimation(player), that removes any active animation. If you're really stubborn, which I assume you are, use this code: function cancelAnimations(p) return setPedAnimation(p) end loadCustom ped.ifp , anim.img , gta3.imgAnimations (Animations in gta3.img file example rifle.ifp) - refer to the first one. getMTAsettings setMTAsettings Nickname: getPlayerName() Graphics: DxGetStatus Audio: Why would you need this? Chat: getChatBoxLayout getServerIP - getModSize (The size of gta3.img files) OnPlayerModInfo use this, because no, using a function doesn't make it better. setCursorIcon (for custom Cursor Icon) - set setCursorAlpha and dxDrawImage fxAddGraphics - what teh actualwhat guiCreateGIF - dxDrawGifImage guiSetButtonColour guiSetTabColour ---- implement your own gui system. Link to comment
Sora Posted July 22, 2013 Share Posted July 22, 2013 Another good solution You can now attempt to bribe MTA devs to fix your favorite bug or add some new feature to MTA:SA.All monies collected go towards meeting the costs of running the MTA:SA servers. (Full details of which are available somewhere) Link to comment
Quited Posted July 26, 2013 Author Share Posted July 26, 2013 Ok , What About getServerIP ? Link to comment
Recommended Posts