RangeR.. Posted April 12, 2015 Share Posted April 12, 2015 hi please meri koi madad karo kyunke mujhe gui ki smaj nahi aa rahi koi aasan sa video tutorial hy to btao Link to comment
Mr.unpredictable. Posted April 12, 2015 Share Posted April 12, 2015 R3mp ka gui editor bahut aashan hai use karne mai. https://community.multitheftauto.com/ind ... ils&id=141 Link to comment
RangeR.. Posted April 12, 2015 Author Share Posted April 12, 2015 Pata hai, mai gui screen to bana leta hun magar phir samaj nahi aati k kya karu us ko start krny k liye Link to comment
Mr.unpredictable. Posted April 12, 2015 Share Posted April 12, 2015 Tum code banaho aur koi bhi problem hai tho yaha post kaaro ho ham log madat karenge Link to comment
Ryancit2 Posted April 12, 2015 Share Posted April 12, 2015 For example, uss GUI ka output ye hota hai: addEventHandler("onClientResourceStart", root, function() guiEditor.Window[1] = -- arguments -- more GUI stuff... end ) Tum isey edit kar ke ye banao: -- Event aur function ko delete karo... -- Under k elements ko wesay hi rehnay do... guiEditor.Window[1] = -- arguments... -- GUI Elements ke aakhir main ye likho: guiSetVisible(guiEditor.Window[1], false) -- Window ko hide karo resource start hotay hi... -- Ab GUI show karo: function toggleGUI() guiSetVisible(guiEditor.Window[1], (not guiGetVisible(guiEditor.Window[1]))) -- Is function se pehlay check karega k window visible hai, agar yes to hide ho jaye gi agar no to phir show ho jaye gi... showCursor(not isCursorShowing()) -- Is function se check karega k cursor show ho raha hai, agar yes to hide kar de ga agar no to phir show karega. end addCommandHandler("toggle", toggleGUI) Link to comment
RangeR.. Posted April 12, 2015 Author Share Posted April 12, 2015 aur agar koi bind rakhna ho to kya krain ge BHOT BHOT SHUKRIYA YAHI DHOOND RAHA THa.. Link to comment
Ryancit2 Posted April 12, 2015 Share Posted April 12, 2015 function toggleGUI() guiSetVisible(guiEditor.Window[1], (not guiGetVisible(guiEditor.Window[1]))) showCursor(not isCursorShowing()) end addCommandHandler("toggle", toggleGUI) bindKey("O", "down", toggleGUI) -- Simple function ;D Link to comment
Anubhav Posted April 12, 2015 Share Posted April 12, 2015 It will mainly show the GUI to everyone, trigger kar. Mein appko ye skype pe batonga Link to comment
Ryancit2 Posted April 12, 2015 Share Posted April 12, 2015 It will mainly show the GUI to everyone, trigger kar.Mein appko ye skype pe batonga No it wont, command is added in client side + it will trigger function for client only. Link to comment
Anubhav Posted April 12, 2015 Share Posted April 12, 2015 it happends with command handler sometimes// Link to comment
Ryancit2 Posted April 12, 2015 Share Posted April 12, 2015 it happends with command handler sometimes// Yes, happens when you addCommand in serverside and then triggerClientEvent to open GUI, that can be minimized by this: triggerClientEvent("openGUI", root) -- WRONG! triggerClientEvent(player, "openGUI", player) -- Right, will be triggered for only the player who typed command. Link to comment
Anubhav Posted April 12, 2015 Share Posted April 12, 2015 I'm talking about client-side, duh. Link to comment
Mr.unpredictable. Posted April 12, 2015 Share Posted April 12, 2015 It will mainly show the GUI to everyone, trigger kar.Mein appko ye skype pe batonga Kidding? Link to comment
Ryancit2 Posted April 12, 2015 Share Posted April 12, 2015 I'm talking about client-side, duh. There is no way, in client-side-only to open GUI for ALL THE PLAYERS IN SERVER! Link to comment
Mr.unpredictable. Posted April 12, 2015 Share Posted April 12, 2015 I just added an example about bind for gui , you can learn it from there. https://wiki.multitheftauto.com/wiki/GuiSetVisible Link to comment
RangeR.. Posted April 12, 2015 Author Share Posted April 12, 2015 function toggleGUI() (not guiGetVisible(guiEditor.Window[1]))) showCursor(not isCursorShowing()) ye "not" kab use krty hn aur kyu Link to comment
Anubhav Posted April 12, 2015 Share Posted April 12, 2015 not ka example not false Ye return karega 'yes' ye asi jaga pe use hota jab boolean hota hein waha pein, guiGetVisible ka not. true hoga to false karega. Link to comment
TheSmart Posted April 12, 2015 Share Posted April 12, 2015 for i,__ in pairs local return kaha use hota hai pls bta do. Link to comment
Anubhav Posted April 12, 2015 Share Posted April 12, 2015 for i, _ in pairs: Ye un-indexed tables ke liya hein such as. Likin indexed table ke liya bhi kam kar ta hein. i ka return ho ga index aur v ka return hoga index ki value. myTable = { ['3453'] = "Yo" } local: Ye hamlog agar top pe use kare, to ye usi SCRIPT/FILE pe use kar sakta ho. Agar function mein kiya to function mein hi. return: Jab apko koy chiz vapis bhajni ho. example: [lua] function getMyPlayer( player ) return player agar app return nahi use karoge to nil return ayy ga aur koy gadbad ho sakti hein. Link to comment
Ryancit2 Posted April 13, 2015 Share Posted April 13, 2015 not ka example not false Ye return karega 'yes' ye asi jaga pe use hota jab boolean hota hein waha pein, guiGetVisible ka not. true hoga to false karega. In other words, 'not' use hota hai opposite boolean k liye. btw wo '_' ka mujhay bhi nahi pata tha, main isey use bhi nahi karta. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now