HoLsTeN Posted November 12, 2010 Share Posted November 12, 2010 (edited) hi all i have Problem here my gui is not show i dont know why ??? plz tell me the Problem the Image not show i dont know why ??? local localPlayer = getLocalPlayer ( ) taplWindow = guiCreateWindow(220,223,429,316,"shop panel",false) tabPanel = guiCreateTabPanel(13,74,401,233,false,taplWindow) tab5 = guiCreateTab("shop",tabPanel) weapGrid = guiCreateGridList(19,108,154,193,false,tab5) guiGridListSetSelectionMode(weapGrid,0) weapColumn = guiGridListAddColumn(weapGrid,"Weapon",0.2) costColumn = guiGridListAddColumn(weapGrid,"$",0.2) weapButton = guiCreateButton(236,324,151,203,"Buy Weapon",false,tab5) local weapons = {{46,150},{22,250},{23,250},{24,300},{31,350},{30,350},{29,375},{25,400},{32,400},{33,400},{28,450},{26,450},{9,450},{27,500},{34,750},{4,2000}} for i,v in ipairs (weapons) do local itemName = getWeaponNameFromID (v[1]) local row = guiGridListAddRow (weapGrid) guiGridListSetItemText (weapGrid, row, 1, itemName, false, true) guiGridListSetItemText (weapGrid, row, 2, tostring(v[2]), false, true) end guiSetAlpha(weapGrid,1) Flip = guiCreateButton(167,48,62,19,"2500 $",false,tab5) Nitro = guiCreateButton(246,48,62,19,"2000 $",false,tab5) Repair = guiCreateButton(327,48,62,19,"3500 $",false,tab5) Invisible = guiCreateButton(169,107,62,19,"20000 $",false,tab5) Barrel = guiCreateButton(248,107,62,19,"15000 $",false,tab5) smoke = guiCreateButton(329,107,62,19,"20000 $",false,tab5) soon1 = guiCreateButton(170,168,62,19,"sooon",false,tab5) soon2 = guiCreateButton(250,167,62,19,"sooon",false,tab5) GUIEditor_Image[1] = guiCreateStaticImage(165,5,64,37,"images/shruk.png",false,tab5) GUIEditor_Image[2] = guiCreateStaticImage(242,9,70,32,"images/shruk1.png",false,tab5) GUIEditor_Image[3] = guiCreateStaticImage(330,10,68,30,"images/shruk2.png",false,tab5) GUIEditor_Image[4] = guiCreateStaticImage(164,74,72,30,"images/shruk3.png",false,tab5) GUIEditor_Image[5] = guiCreateStaticImage(245,73,73,31,"images/shruk4.png",false,tab5) GUIEditor_Image[6] = guiCreateStaticImage(332,74,69,30,"images/shruk5.png",false,tab5) GUIEditor_Image[7] = guiCreateStaticImage(166,131,66,34,"images/shruk6.png",false,tab5) GUIEditor_Image[8] = guiCreateStaticImage(249,131,68,34,"images/shruk7.png",false,tab5) GUIEditor_Label[1] = guiCreateLabel(231,188,162,17,"This Mode by k!ng-OF-sn!per",false,tab5) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) tab3 = guiCreateTab("Share money",tabPanel) GUIEditor_Grid[2] = guiCreateGridList(7,9,152,195,false,tab3) guiGridListSetSelectionMode(GUIEditor_Grid[2],2) guiGridListAddColumn(GUIEditor_Grid[2],"player",0.2) Send_massege = guiCreateButton(316,78,70,36,"::Send::",false,tab3) playerNameLabel = guiCreateLabel(190,16,107,26,"player name :",false,tab3) guiLabelSetColor(playerNameLabel,255,255,255) guiLabelSetVerticalAlign(playerNameLabel,"top") guiLabelSetHorizontalAlign(playerNameLabel,"left",false) amountLabel = guiCreateLabel(190,65,107,26,"amunt :",false,tab3) guiLabelSetColor(amountLabel,255,255,255) guiLabelSetVerticalAlign(amountLabel,"top") guiLabelSetHorizontalAlign(amountLabel,"left",false) playerNameEdit = guiCreateEdit(185,35,167,28,"",false,tab3) guiEditSetReadOnly(playerNameEdit,true) amountEdit = guiCreateEdit(188,83,109,29,"",false,tab3) guiEditSetMaxLength(amountEdit,5) function setGUI ( ) selectedRow, selectedCol = guiGridListGetSelectedItem( playerGridList ) gridPlayerName = guiGridListGetItemText( playerGridList, selectedRow, selectedCol ) guiSetText ( playerNameEdit, gridPlayerName ) end function onGuiClick (button, state, absoluteX, absoluteY) if (source == Flip) then triggerServerEvent ("buyFlip", getLocalPlayer()) elseif (source == Nitro) then triggerServerEvent ("buyNitro", getLocalPlayer()) elseif (source == GodMode) then triggerServerEvent ("buyGodMode", getLocalPlayer()) elseif (source == Repair) then triggerServerEvent ("buyRepair", getLocalPlayer()) elseif (source == Health) then triggerServerEvent ("buyHealth", getLocalPlayer()) elseif (source == Invisible) then triggerServerEvent ("buyInvisible", getLocalPlayer()) elseif (source == Barrel) then triggerServerEvent ("buyBarrel", getLocalPlayer()) elseif (source == sendMoneyButton) then playerNick = guiGetText ( playerNameEdit ) amount = guiGetText ( amountEdit ) triggerServerEvent ("sendMoney", getLocalPlayer(), playerNick, amount) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) function ToggletaplMenu() if (guiGetVisible(taplWindow) == true) then guiSetVisible(taplWindow, false) showCursor(false) else guiSetVisible(taplWindow, true) showCursor(true) playerGridList = guiCreateGridList(19,108,154,193,false,tab3) playersColumn = guiGridListAddColumn(playerGridList,"Players",0.85) guiGridListSetSelectionMode(playerGridList,2) for id, plaItem in ipairs(getElementsByType("player")) do row = guiGridListAddRow ( playerGridList ) guiGridListSetItemText ( playerGridList, row, playersColumn, getPlayerName ( plaItem ), false, false ) end bindKey("F2","down",ToggletaplMenu) outputChatBox("This Script By ||Castillo||",255,255,0) outputChatBox("Press F2 To Open ||BaseMode Panel|| !!!",0,255,0) function refreshStats() if guiGetVisible(taplWindow,true) then guiSetText(moneyLabel,"You have Money: $"..getPlayerMoney (getLocalPlayer())) else guiSetText(moneyLabel,"Money: You no have any Money") end end addEventHandler("onClientRender", getRootElement(), refreshStats) function onClientWeapBuy (button, state, absoluteX, absoluteYe) if (source == weapButton) then guiSetVisible (taplWindow, false) showCursor (false) if (guiGridListGetSelectedItem (weapGrid)) then local itemName = guiGridListGetItemText (weapGrid, guiGridListGetSelectedItem (weapGrid), 1) local itemID = getWeaponIDFromName (itemName) local itemCost = guiGridListGetItemText (weapGrid, guiGridListGetSelectedItem (weapGrid), 2) triggerServerEvent ("weapBuy", getLocalPlayer(), itemID, itemCost, itemName) end end end addEventHandler ("onClientGUIClick", weapButton, onClientWeapBuy) function guiClick (button, state, absoluteX, absoluteY) if (source == Flip) then guiSetVisible (taplWindow, false) showCursor (false) elseif (source == Nitro) then guiSetVisible (taplWindow, false) showCursor (false) elseif (source == Repair) then guiSetVisible (taplWindow, false) showCursor (false) elseif (source == Invisible) then guiSetVisible (taplWindow, false) showCursor (false) elseif (source == Health) then guiSetVisible (taplWindow, false) showCursor (false) elseif (source == Barrel) then guiSetVisible (taplWindow, false) showCursor (false) elseif (source == sendMoneyButton) then guiSetVisible (taplWindow, false) showCursor (false) end end addEventHandler ("onClientGUIClick", getRootElement(), guiClick) I EDIT THE SCRIPT IT IS WAS BY Castillo SORRY Castillo I DONT SAY TO YOU I WANT EDIT THE SCRIPT >< Edited November 12, 2010 by Guest Link to comment
dzek (varez) Posted November 12, 2010 Share Posted November 12, 2010 credits removed i see.. This Script By ||Nu9aif|| Link to comment
HoLsTeN Posted November 12, 2010 Author Share Posted November 12, 2010 credits removed i see..This Script By ||Nu9aif|| i jast copy and but here i forgit see now and help me >< Link to comment
guyfromuk Posted November 13, 2010 Share Posted November 13, 2010 You must make your own resource and put here again... Try use guieditor: https://community.multitheftauto.com/index.php?p= ... ils&id=141 And try with server side... 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