Jump to content

please Help !


Quited

Recommended Posts

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

? you don't understand

i want remove id = and hash =

such GameMode Tactics :

0c37404361fb07.png

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 by Guest
Link to comment

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...