Quited Posted April 14, 2013 Share Posted April 14, 2013 I have resource about gta3.img I want remove selected Picture : http://img08.arabsh.com/uploads/image/2 ... 61f606.png Code : function handleOnPlayerModInfo ( filename, modList ) theName = getPlayerName(source) theName = theName:gsub("#%x%x%x%x%x%x","") outputChatBox( theName .. " " .. filename, root, 255, 0, 0, false ) for idx,mod in ipairs(modList) do local line = tostring(idx) .. ")" for k,v in pairs(mod) do line = line .. " " .. tostring(k) .. "=" .. tostring(v) end triggerClientEvent(root, "addInfo", root, line, theName) end end addEventHandler ( "onPlayerModInfo", getRootElement(), handleOnPlayerModInfo ) addEventHandler ( "onPlayerConnect", getRootElement(), handleOnPlayerModInfo ) And client : GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(202,125,624,564,"اظهار الملفات المعدله ب gta3.img",false) guiSetAlpha(GUIEditor_Window[1],1) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(9,20,606,493,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) c1 = guiGridListAddColumn(GUIEditor_Grid[1],"Name",0.2) c = guiGridListAddColumn(GUIEditor_Grid[1],"the Info",0.9) GUIEditor_Button[1] = guiCreateButton(18,526,237,29,"نسخ المعلومات",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(413,519,202,36,"اغلاق الوحة",false,GUIEditor_Window[1]) guiSetVisible(GUIEditor_Window[1], false) showWindow = function() if (guiGetVisible(GUIEditor_Window[1]) == false) then guiSetVisible(GUIEditor_Window[1], true) showCursor( true ) else guiSetVisible(GUIEditor_Window[1], false) showCursor( false ) end end bindKey("-","down",showWindow) addEvent("addInfo", true) addEventHandler("addInfo", root, function( line, theName ) local row = guiGridListAddRow( GUIEditor_Grid[1] ) guiGridListSetItemText ( GUIEditor_Grid[1], row, c1, theName, false, false ) guiGridListSetItemText ( GUIEditor_Grid[1], row, c, line, false, false ) end ) addEventHandler("onClientGUIClick", root, function() if (source == GUIEditor_Button[2]) then guiSetVisible(GUIEditor_Window[1], false) showCursor( false ) elseif (source == GUIEditor_Button[1]) then theCopy = guiGridListGetItemText ( GUIEditor_Grid[1], guiGridListGetSelectedItem ( GUIEditor_Grid[1] ), c ) cop = setClipboard( theCopy ) if cop == true then outputChatBox("تم نسخ المعلومات", 255, 255, 0, false) else outputChatBox("الرجاء تحديد المراد نسخه", 255, 0, 0, false) end end end ) Link to comment
iPrestege Posted April 14, 2013 Share Posted April 14, 2013 guiGridListClear ?? or u want to remove it . Link to comment
Quited Posted April 14, 2013 Author Share Posted April 14, 2013 (edited) ? you don't understand i want remove id = and hash = such GameMode Tactics : Tactics just show mod name Tactics not show id = and hash = Note : i don't want put mod name to chatbox i want remove id = and hash = See pictrue in first topic Edited April 14, 2013 by Guest Link to comment
Max+ Posted April 14, 2013 Share Posted April 14, 2013 Please Explain Better You Want Remove the Modfied files form players ? or You Want Show the Modfied files in chat like Tactics ? Link to comment
Quited Posted April 14, 2013 Author Share Posted April 14, 2013 No ! i want my code not show id = and hash = In modify mod name i want just show mod name Like tactics gamemode Link to comment
TAPL Posted April 14, 2013 Share Posted April 14, 2013 Try function handleOnPlayerModInfo(filename, modList) local theName = getPlayerName(source):gsub("#%x%x%x%x%x%x","") outputChatBox(theName.." "..filename, root, 255, 0, 0) for idx, mod in ipairs(modList) do local line = tostring(idx)..") "..tostring(mod.name) triggerClientEvent(root, "addInfo", root, line, theName) end end addEventHandler("onPlayerModInfo", root, handleOnPlayerModInfo) Link to comment
Quited Posted April 14, 2013 Author Share Posted April 14, 2013 Try function handleOnPlayerModInfo(filename, modList) local theName = getPlayerName(source):gsub("#%x%x%x%x%x%x","") outputChatBox(theName.." "..filename, root, 255, 0, 0) for idx, mod in ipairs(modList) do local line = tostring(idx)..") "..tostring(mod.name) triggerClientEvent(root, "addInfo", root, line, theName) end end addEventHandler("onPlayerModInfo", root, handleOnPlayerModInfo) Thx TAPL , i Vote to you be moderator Scripting Forum Please close topic 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