Jump to content

طلب تعديل لوحة شخصيات |تمت الافادة من برستيج


CRoW,,#

Recommended Posts

السلام عليكم

انا سويت لوحة شخصيات بس

ذا هو الكود

اتمنى تفيدوني

Client 
GUIEditor_Button = {} 
GUIEditor_Image = {} 
  
wnd = guiCreateWindow(219,150,551,400,"SKINS By LBN",false) 
guiSetAlpha(wnd,1) 
GUIEditor_Image[1] = guiCreateStaticImage(32,50,174,98,"images/1.png",false,wnd) 
GUIEditor_Image[2] = guiCreateStaticImage(337,40,193,94,"images/2.png",false,wnd) 
GUIEditor_Image[3] = guiCreateStaticImage(42,261,156,91,"images/3.png",false,wnd) 
GUIEditor_Image[4] = guiCreateStaticImage(362,267,145,82,"images/4.png",false,wnd) 
GUIEditor_Button[1] = guiCreateButton(68,168,91,36,"موافق",false,wnd) 
GUIEditor_Button[2] = guiCreateButton(393,165,91,36,"موافق",false,wnd) 
GUIEditor_Button[3] = guiCreateButton(393,350,91,36,"موافق",false,wnd) 
GUIEditor_Button[4] = guiCreateButton(73,350,91,36,"موافق",false,wnd) 
  
function ss() 
getVisible = guiGetVisible (wnd)  
if (getVisible == true) then 
    guiSetVisible (wnd, false) 
    showCursor (false) 
end 
if (getVisible == false) then 
    guiSetVisible (wnd, true) 
    showCursor (true) 
    end 
end 
bindKey ("F7", "down", ss) 
   
  
function onGuiClick (button, state, absoluteX, absoluteY) 
  if (source == GUIEditor_Button[1]) then  
    triggerServerEvent ("skin1", getLocalPlayer())  
                                                    
  elseif (source == GUIEditor_Button[2]) then  
    triggerServerEvent ("skin2", getLocalPlayer())   
       
  elseif (source == GUIEditor_Button[3]) then  
    triggerServerEvent ("skin3" getLocalPlayer()) 
     
    elseif (source == GUIEditor_Button[4]) then  
    triggerServerEvent ("skin4" getLocalPlayer()) 
  end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
  
function Repskin()  
        TXD1 = engineLoadTXD ("skin/124.txd");  
        engineImportTXD (TXD1, 124);  
        DFF1 = engineLoadDFF ("skin/124.dff", 124);  
        engineReplaceModel (DFF1, 124);  
         
        TXD2 = engineLoadTXD ("skin/46.txd"); 
        engineImportTXD (TXD2, 46); 
        DFF2 = engineLoadDFF ("skin/46.dff", 46); 
        engineReplaceModel (DFF2, 46); 
         
         
        TXD3 = engineLoadTXD3 ("skin/102.txd"); 
        engineImportTXD (TXD3, 102); 
        DFF3 = engineLoadDFF ("skin/102.dff", 102); 
        engineReplaceModel (DFF3, 102); 
     
         
        TXD4 = engineLoadTXD4 ("skin/82.txd"); 
        engineImportTXD (TXD4, 82); 
        DFF4 = engineLoadDFF ("skin/82.dff", 82); 
        engineReplaceModel (DFF4, 82); 
         
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), Repskin) 
         
         
     
  

server 
  
addEvent( "skin1", true ) 
function setSkin1 () 
    setPedSkin ( source, 46 )  
    outputChatBox ( "تم تغيير الشخصية بنجاح.", source, 255, 0, 0 )  
end 
addEventHandler ( "skin1", getRootElement(), setSkin1 )   
  
  
  
addEvent( "skin2", true )   
function setSkin2 () 
    setPedSkin ( source, 124 )  
    outputChatBox ( "تم تغيير الشخصية بنجاح.", source, 255, 0, 0 )  
end 
addEventHandler ( "skin2", getRootElement(), setSkin2 )   
  
  
addEvent( "skin3", true )  
function setSkin3 () 
    setPedSkin ( source, 102 )  
    outputChatBox ( "تم تغيير الشخصية بنجاح.", source, 255, 0, 0 )  
end 
addEventHandler ( "skin3", getRootElement(), setSkin3 )   
  
  
addEvent( "skin4", true )  
function setSkin4 () 
    setPedSkin ( source, 82 )  
    outputChatBox ( "تم تغيير الشخصية بنجاح.", source, 255, 0, 0 )  
end 
addEventHandler ( "skin4", getRootElement(), setSkin4 ) 
  
  
  

meta 
 
  

:?

Edited by Guest
Link to comment
-- Client 
GUIEditor_Button = {} 
GUIEditor_Image = {} 
  
wnd = guiCreateWindow(219,150,551,400,"SKINS By LBN",false) 
guiSetAlpha(wnd,1) 
GUIEditor_Image[1] = guiCreateStaticImage(32,50,174,98,"images/1.png",false,wnd) 
GUIEditor_Image[2] = guiCreateStaticImage(337,40,193,94,"images/2.png",false,wnd) 
GUIEditor_Image[3] = guiCreateStaticImage(42,261,156,91,"images/3.png",false,wnd) 
GUIEditor_Image[4] = guiCreateStaticImage(362,267,145,82,"images/4.png",false,wnd) 
GUIEditor_Button[1] = guiCreateButton(68,168,91,36,"موافق",false,wnd) 
GUIEditor_Button[2] = guiCreateButton(393,165,91,36,"موافق",false,wnd) 
GUIEditor_Button[3] = guiCreateButton(393,350,91,36,"موافق",false,wnd) 
GUIEditor_Button[4] = guiCreateButton(73,350,91,36,"موافق",false,wnd) 
  
function ss() 
getVisible = guiGetVisible (wnd)  
if (getVisible == true) then 
    guiSetVisible (wnd, false) 
    showCursor (false) 
end 
if (getVisible == false) then 
    guiSetVisible (wnd, true) 
    showCursor (true) 
    end 
end 
bindKey ("F7", "down", ss) 
   
  
function onGuiClick (button, state, absoluteX, absoluteY) 
  if (source == GUIEditor_Button[1]) then  
    triggerServerEvent ("skin1", getLocalPlayer())  
                                                    
  elseif (source == GUIEditor_Button[2]) then  
    triggerServerEvent ("skin2", getLocalPlayer())   
       
  elseif (source == GUIEditor_Button[3]) then  
    triggerServerEvent ("skin3" getLocalPlayer()) 
     
    elseif (source == GUIEditor_Button[4]) then  
    triggerServerEvent ("skin4" getLocalPlayer()) 
  end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
  
function Repskin()  
        TXD1 = engineLoadTXD ("skin/124.txd");  
        engineImportTXD (TXD1, 124);  
        DFF1 = engineLoadDFF ("skin/124.dff", 124);  
        engineReplaceModel (DFF1, 124);  
         
        TXD2 = engineLoadTXD ("skin/46.txd"); 
        engineImportTXD (TXD2, 46); 
        DFF2 = engineLoadDFF ("skin/46.dff", 46); 
        engineReplaceModel (DFF2, 46); 
         
         
        TXD3 = engineLoadTXD3 ("skin/102.txd"); 
        engineImportTXD (TXD3, 102); 
        DFF3 = engineLoadDFF ("skin/102.dff", 102); 
        engineReplaceModel (DFF3, 102); 
     
         
        TXD4 = engineLoadTXD4 ("skin/82.txd"); 
        engineImportTXD (TXD4, 82); 
        DFF4 = engineLoadDFF ("skin/82.dff", 82); 
        engineReplaceModel (DFF4, 82); 
         
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), Repskin) 
         
         
     
  

-- server 
  
addEvent( "skin1", true ) 
addEventHandler ( "skin1", root, 
function  () 
    setPedSkin ( source, 46 )  
    outputChatBox ( "تم تغيير الشخصية بنجاح.", source, 255, 0, 0 )  
end 
) 
  
  
  
  
addEvent( "skin2", true )   
addEventHandler ( "skin2", root, 
function () 
    setPedSkin ( source, 124 )  
    outputChatBox ( "تم تغيير الشخصية بنجاح.", source, 255, 0, 0 )  
end 
)   
  
  
addEvent( "skin3", true )  
addEventHandler ( "skin3", root, 
function () 
    setPedSkin ( source, 102 )  
    outputChatBox ( "تم تغيير الشخصية بنجاح.", source, 255, 0, 0 )  
end 
) 
  
  
addEvent( "skin4", true )  
addEventHandler ( "skin4", root, 
function  () 
    setPedSkin ( source, 82 )  
    outputChatBox ( "تم تغيير الشخصية بنجاح.", source, 255, 0, 0 )  
end 
) 
  
  
  
  

-- meta 
 
  

Link to comment

Client Side :

  
GUIEditor_Button = {} 
GUIEditor_Image = {} 
  
wnd = guiCreateWindow(219,150,551,400,"SKINS By LBN",false) 
guiSetAlpha(wnd,1) 
GUIEditor_Image[1] = guiCreateStaticImage(32,50,174,98,"images/1.png",false,wnd) 
GUIEditor_Image[2] = guiCreateStaticImage(337,40,193,94,"images/2.png",false,wnd) 
GUIEditor_Image[3] = guiCreateStaticImage(42,261,156,91,"images/3.png",false,wnd) 
GUIEditor_Image[4] = guiCreateStaticImage(362,267,145,82,"images/4.png",false,wnd) 
GUIEditor_Button[1] = guiCreateButton(68,168,91,36,"موافق",false,wnd) 
GUIEditor_Button[2] = guiCreateButton(393,165,91,36,"موافق",false,wnd) 
GUIEditor_Button[3] = guiCreateButton(393,350,91,36,"موافق",false,wnd) 
GUIEditor_Button[4] = guiCreateButton(73,350,91,36,"موافق",false,wnd) 
  
bindKey("F7","down", 
function () 
    guiSetVisible(wnd,not guiGetVisible(wnd)) 
    showCursor(guiGetVisible(wnd)) 
    guiSetInputEnabled(guiGetVisible(wnd)) 
end) 
   
  
function onGuiClick (button, state, absoluteX, absoluteY) 
  if (source == GUIEditor_Button[1]) then  
    triggerServerEvent ("skin1",localPlayer)  
  elseif (source == GUIEditor_Button[2]) then  
    triggerServerEvent ("skin2", localPlayer)   
  elseif (source == GUIEditor_Button[3]) then  
    triggerServerEvent ("skin3",localPlayer) 
    elseif (source == GUIEditor_Button[4]) then  
    triggerServerEvent ("skin4",localPlayer) 
  end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
  
function Repskin()  
        TXD1 = engineLoadTXD ("skin/124.txd");  
        engineImportTXD (TXD1, 124);  
        DFF1 = engineLoadDFF ("skin/124.dff", 124);  
        engineReplaceModel (DFF1, 124);  
         
        TXD2 = engineLoadTXD ("skin/46.txd"); 
        engineImportTXD (TXD2, 46); 
        DFF2 = engineLoadDFF ("skin/46.dff", 46); 
        engineReplaceModel (DFF2, 46); 
         
         
        TXD3 = engineLoadTXD3 ("skin/102.txd"); 
        engineImportTXD (TXD3, 102); 
        DFF3 = engineLoadDFF ("skin/102.dff", 102); 
        engineReplaceModel (DFF3, 102); 
     
         
        TXD4 = engineLoadTXD4 ("skin/82.txd"); 
        engineImportTXD (TXD4, 82); 
        DFF4 = engineLoadDFF ("skin/82.dff", 82); 
        engineReplaceModel (DFF4, 82); 
         
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), Repskin) 
         
         
     
  
Link to comment
Client Side :

  
GUIEditor_Button = {} 
GUIEditor_Image = {} 
  
wnd = guiCreateWindow(219,150,551,400,"SKINS By LBN",false) 
guiSetAlpha(wnd,1) 
GUIEditor_Image[1] = guiCreateStaticImage(32,50,174,98,"images/1.png",false,wnd) 
GUIEditor_Image[2] = guiCreateStaticImage(337,40,193,94,"images/2.png",false,wnd) 
GUIEditor_Image[3] = guiCreateStaticImage(42,261,156,91,"images/3.png",false,wnd) 
GUIEditor_Image[4] = guiCreateStaticImage(362,267,145,82,"images/4.png",false,wnd) 
GUIEditor_Button[1] = guiCreateButton(68,168,91,36,"موافق",false,wnd) 
GUIEditor_Button[2] = guiCreateButton(393,165,91,36,"موافق",false,wnd) 
GUIEditor_Button[3] = guiCreateButton(393,350,91,36,"موافق",false,wnd) 
GUIEditor_Button[4] = guiCreateButton(73,350,91,36,"موافق",false,wnd) 
  
bindKey("F7","down", 
function () 
    guiSetVisible(wnd,not guiGetVisible(wnd)) 
    showCursor(guiGetVisible(wnd)) 
    guiSetInputEnabled(guiGetVisible(wnd)) 
end) 
   
  
function onGuiClick (button, state, absoluteX, absoluteY) 
  if (source == GUIEditor_Button[1]) then  
    triggerServerEvent ("skin1",localPlayer)  
  elseif (source == GUIEditor_Button[2]) then  
    triggerServerEvent ("skin2", localPlayer)   
  elseif (source == GUIEditor_Button[3]) then  
    triggerServerEvent ("skin3",localPlayer) 
    elseif (source == GUIEditor_Button[4]) then  
    triggerServerEvent ("skin4",localPlayer) 
  end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
  
function Repskin()  
        TXD1 = engineLoadTXD ("skin/124.txd");  
        engineImportTXD (TXD1, 124);  
        DFF1 = engineLoadDFF ("skin/124.dff", 124);  
        engineReplaceModel (DFF1, 124);  
         
        TXD2 = engineLoadTXD ("skin/46.txd"); 
        engineImportTXD (TXD2, 46); 
        DFF2 = engineLoadDFF ("skin/46.dff", 46); 
        engineReplaceModel (DFF2, 46); 
         
         
        TXD3 = engineLoadTXD3 ("skin/102.txd"); 
        engineImportTXD (TXD3, 102); 
        DFF3 = engineLoadDFF ("skin/102.dff", 102); 
        engineReplaceModel (DFF3, 102); 
     
         
        TXD4 = engineLoadTXD4 ("skin/82.txd"); 
        engineImportTXD (TXD4, 82); 
        DFF4 = engineLoadDFF ("skin/82.dff", 82); 
        engineReplaceModel (DFF4, 82); 
         
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), Repskin) 
         
         
     
  

:mrgreen: السطر 20 ماله داعي

Link to comment
Client Side :

  
GUIEditor_Button = {} 
GUIEditor_Image = {} 
  
wnd = guiCreateWindow(219,150,551,400,"SKINS By LBN",false) 
guiSetAlpha(wnd,1) 
GUIEditor_Image[1] = guiCreateStaticImage(32,50,174,98,"images/1.png",false,wnd) 
GUIEditor_Image[2] = guiCreateStaticImage(337,40,193,94,"images/2.png",false,wnd) 
GUIEditor_Image[3] = guiCreateStaticImage(42,261,156,91,"images/3.png",false,wnd) 
GUIEditor_Image[4] = guiCreateStaticImage(362,267,145,82,"images/4.png",false,wnd) 
GUIEditor_Button[1] = guiCreateButton(68,168,91,36,"موافق",false,wnd) 
GUIEditor_Button[2] = guiCreateButton(393,165,91,36,"موافق",false,wnd) 
GUIEditor_Button[3] = guiCreateButton(393,350,91,36,"موافق",false,wnd) 
GUIEditor_Button[4] = guiCreateButton(73,350,91,36,"موافق",false,wnd) 
  
bindKey("F7","down", 
function () 
    guiSetVisible(wnd,not guiGetVisible(wnd)) 
    showCursor(guiGetVisible(wnd)) 
    guiSetInputEnabled(guiGetVisible(wnd)) 
end) 
   
  
function onGuiClick (button, state, absoluteX, absoluteY) 
  if (source == GUIEditor_Button[1]) then  
    triggerServerEvent ("skin1",localPlayer)  
  elseif (source == GUIEditor_Button[2]) then  
    triggerServerEvent ("skin2", localPlayer)   
  elseif (source == GUIEditor_Button[3]) then  
    triggerServerEvent ("skin3",localPlayer) 
    elseif (source == GUIEditor_Button[4]) then  
    triggerServerEvent ("skin4",localPlayer) 
  end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
  
function Repskin()  
        TXD1 = engineLoadTXD ("skin/124.txd");  
        engineImportTXD (TXD1, 124);  
        DFF1 = engineLoadDFF ("skin/124.dff", 124);  
        engineReplaceModel (DFF1, 124);  
         
        TXD2 = engineLoadTXD ("skin/46.txd"); 
        engineImportTXD (TXD2, 46); 
        DFF2 = engineLoadDFF ("skin/46.dff", 46); 
        engineReplaceModel (DFF2, 46); 
         
         
        TXD3 = engineLoadTXD3 ("skin/102.txd"); 
        engineImportTXD (TXD3, 102); 
        DFF3 = engineLoadDFF ("skin/102.dff", 102); 
        engineReplaceModel (DFF3, 102); 
     
         
        TXD4 = engineLoadTXD4 ("skin/82.txd"); 
        engineImportTXD (TXD4, 82); 
        DFF4 = engineLoadDFF ("skin/82.dff", 82); 
        engineReplaceModel (DFF4, 82); 
         
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), Repskin) 
         
         
     
  

:mrgreen: السطر 20 ماله داعي

تعرف وش حقة عشان تقول مالة داعي؟ :lol:

Link to comment
Client Side :

  
GUIEditor_Button = {} 
GUIEditor_Image = {} 
  
wnd = guiCreateWindow(219,150,551,400,"SKINS By LBN",false) 
guiSetAlpha(wnd,1) 
GUIEditor_Image[1] = guiCreateStaticImage(32,50,174,98,"images/1.png",false,wnd) 
GUIEditor_Image[2] = guiCreateStaticImage(337,40,193,94,"images/2.png",false,wnd) 
GUIEditor_Image[3] = guiCreateStaticImage(42,261,156,91,"images/3.png",false,wnd) 
GUIEditor_Image[4] = guiCreateStaticImage(362,267,145,82,"images/4.png",false,wnd) 
GUIEditor_Button[1] = guiCreateButton(68,168,91,36,"موافق",false,wnd) 
GUIEditor_Button[2] = guiCreateButton(393,165,91,36,"موافق",false,wnd) 
GUIEditor_Button[3] = guiCreateButton(393,350,91,36,"موافق",false,wnd) 
GUIEditor_Button[4] = guiCreateButton(73,350,91,36,"موافق",false,wnd) 
  
bindKey("F7","down", 
function () 
    guiSetVisible(wnd,not guiGetVisible(wnd)) 
    showCursor(guiGetVisible(wnd)) 
    guiSetInputEnabled(guiGetVisible(wnd)) 
end) 
   
  
function onGuiClick (button, state, absoluteX, absoluteY) 
  if (source == GUIEditor_Button[1]) then  
    triggerServerEvent ("skin1",localPlayer)  
  elseif (source == GUIEditor_Button[2]) then  
    triggerServerEvent ("skin2", localPlayer)   
  elseif (source == GUIEditor_Button[3]) then  
    triggerServerEvent ("skin3",localPlayer) 
    elseif (source == GUIEditor_Button[4]) then  
    triggerServerEvent ("skin4",localPlayer) 
  end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
  
function Repskin()  
        TXD1 = engineLoadTXD ("skin/124.txd");  
        engineImportTXD (TXD1, 124);  
        DFF1 = engineLoadDFF ("skin/124.dff", 124);  
        engineReplaceModel (DFF1, 124);  
         
        TXD2 = engineLoadTXD ("skin/46.txd"); 
        engineImportTXD (TXD2, 46); 
        DFF2 = engineLoadDFF ("skin/46.dff", 46); 
        engineReplaceModel (DFF2, 46); 
         
         
        TXD3 = engineLoadTXD3 ("skin/102.txd"); 
        engineImportTXD (TXD3, 102); 
        DFF3 = engineLoadDFF ("skin/102.dff", 102); 
        engineReplaceModel (DFF3, 102); 
     
         
        TXD4 = engineLoadTXD4 ("skin/82.txd"); 
        engineImportTXD (TXD4, 82); 
        DFF4 = engineLoadDFF ("skin/82.dff", 82); 
        engineReplaceModel (DFF4, 82); 
         
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), Repskin) 
         
         
     
  

:mrgreen: السطر 20 ماله داعي

تعرف وش حقة عشان تقول مالة داعي؟ :lol:

Link to comment
Client Side :

  
GUIEditor_Button = {} 
GUIEditor_Image = {} 
  
wnd = guiCreateWindow(219,150,551,400,"SKINS By LBN",false) 
guiSetAlpha(wnd,1) 
GUIEditor_Image[1] = guiCreateStaticImage(32,50,174,98,"images/1.png",false,wnd) 
GUIEditor_Image[2] = guiCreateStaticImage(337,40,193,94,"images/2.png",false,wnd) 
GUIEditor_Image[3] = guiCreateStaticImage(42,261,156,91,"images/3.png",false,wnd) 
GUIEditor_Image[4] = guiCreateStaticImage(362,267,145,82,"images/4.png",false,wnd) 
GUIEditor_Button[1] = guiCreateButton(68,168,91,36,"موافق",false,wnd) 
GUIEditor_Button[2] = guiCreateButton(393,165,91,36,"موافق",false,wnd) 
GUIEditor_Button[3] = guiCreateButton(393,350,91,36,"موافق",false,wnd) 
GUIEditor_Button[4] = guiCreateButton(73,350,91,36,"موافق",false,wnd) 
  
bindKey("F7","down", 
function () 
    guiSetVisible(wnd,not guiGetVisible(wnd)) 
    showCursor(guiGetVisible(wnd)) 
    guiSetInputEnabled(guiGetVisible(wnd)) 
end) 
   
  
function onGuiClick (button, state, absoluteX, absoluteY) 
  if (source == GUIEditor_Button[1]) then  
    triggerServerEvent ("skin1",localPlayer)  
  elseif (source == GUIEditor_Button[2]) then  
    triggerServerEvent ("skin2", localPlayer)   
  elseif (source == GUIEditor_Button[3]) then  
    triggerServerEvent ("skin3",localPlayer) 
    elseif (source == GUIEditor_Button[4]) then  
    triggerServerEvent ("skin4",localPlayer) 
  end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
  
function Repskin()  
        TXD1 = engineLoadTXD ("skin/124.txd");  
        engineImportTXD (TXD1, 124);  
        DFF1 = engineLoadDFF ("skin/124.dff", 124);  
        engineReplaceModel (DFF1, 124);  
         
        TXD2 = engineLoadTXD ("skin/46.txd"); 
        engineImportTXD (TXD2, 46); 
        DFF2 = engineLoadDFF ("skin/46.dff", 46); 
        engineReplaceModel (DFF2, 46); 
         
         
        TXD3 = engineLoadTXD3 ("skin/102.txd"); 
        engineImportTXD (TXD3, 102); 
        DFF3 = engineLoadDFF ("skin/102.dff", 102); 
        engineReplaceModel (DFF3, 102); 
     
         
        TXD4 = engineLoadTXD4 ("skin/82.txd"); 
        engineImportTXD (TXD4, 82); 
        DFF4 = engineLoadDFF ("skin/82.dff", 82); 
        engineReplaceModel (DFF4, 82); 
         
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), Repskin) 
         
         
     
  

:mrgreen: السطر 20 ماله داعي

تعرف وش حقة عشان تقول مالة داعي؟ :lol:

Link to comment
Client Side :

  
GUIEditor_Button = {} 
GUIEditor_Image = {} 
  
wnd = guiCreateWindow(219,150,551,400,"SKINS By LBN",false) 
guiSetAlpha(wnd,1) 
GUIEditor_Image[1] = guiCreateStaticImage(32,50,174,98,"images/1.png",false,wnd) 
GUIEditor_Image[2] = guiCreateStaticImage(337,40,193,94,"images/2.png",false,wnd) 
GUIEditor_Image[3] = guiCreateStaticImage(42,261,156,91,"images/3.png",false,wnd) 
GUIEditor_Image[4] = guiCreateStaticImage(362,267,145,82,"images/4.png",false,wnd) 
GUIEditor_Button[1] = guiCreateButton(68,168,91,36,"موافق",false,wnd) 
GUIEditor_Button[2] = guiCreateButton(393,165,91,36,"موافق",false,wnd) 
GUIEditor_Button[3] = guiCreateButton(393,350,91,36,"موافق",false,wnd) 
GUIEditor_Button[4] = guiCreateButton(73,350,91,36,"موافق",false,wnd) 
  
bindKey("F7","down", 
function () 
    guiSetVisible(wnd,not guiGetVisible(wnd)) 
    showCursor(guiGetVisible(wnd)) 
    guiSetInputEnabled(guiGetVisible(wnd)) 
end) 
   
  
function onGuiClick (button, state, absoluteX, absoluteY) 
  if (source == GUIEditor_Button[1]) then  
    triggerServerEvent ("skin1",localPlayer)  
  elseif (source == GUIEditor_Button[2]) then  
    triggerServerEvent ("skin2", localPlayer)   
  elseif (source == GUIEditor_Button[3]) then  
    triggerServerEvent ("skin3",localPlayer) 
    elseif (source == GUIEditor_Button[4]) then  
    triggerServerEvent ("skin4",localPlayer) 
  end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
  
function Repskin()  
        TXD1 = engineLoadTXD ("skin/124.txd");  
        engineImportTXD (TXD1, 124);  
        DFF1 = engineLoadDFF ("skin/124.dff", 124);  
        engineReplaceModel (DFF1, 124);  
         
        TXD2 = engineLoadTXD ("skin/46.txd"); 
        engineImportTXD (TXD2, 46); 
        DFF2 = engineLoadDFF ("skin/46.dff", 46); 
        engineReplaceModel (DFF2, 46); 
         
         
        TXD3 = engineLoadTXD3 ("skin/102.txd"); 
        engineImportTXD (TXD3, 102); 
        DFF3 = engineLoadDFF ("skin/102.dff", 102); 
        engineReplaceModel (DFF3, 102); 
     
         
        TXD4 = engineLoadTXD4 ("skin/82.txd"); 
        engineImportTXD (TXD4, 82); 
        DFF4 = engineLoadDFF ("skin/82.dff", 82); 
        engineReplaceModel (DFF4, 82); 
         
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), Repskin) 
         
         
     
  

:mrgreen: السطر 20 ماله داعي

تعرف وش حقة عشان تقول مالة داعي؟ :lol:

أللي أعرفه إنه يخليكـ تكتب بدون ما البندات تنحسب تكتب في الميمو أو الإيدت

البندات زي حرف التي إليي يخليك تكتب بالشات يصير لو ضغطته وانت تكتب ما يطلعلك الكتابة بالشات

+

:mrgreen: وأنا قلت ماله داعي لأن مافي لا ميمو ولا إديت في اللوحة

Link to comment
Client Side :

  
GUIEditor_Button = {} 
GUIEditor_Image = {} 
  
wnd = guiCreateWindow(219,150,551,400,"SKINS By LBN",false) 
guiSetAlpha(wnd,1) 
GUIEditor_Image[1] = guiCreateStaticImage(32,50,174,98,"images/1.png",false,wnd) 
GUIEditor_Image[2] = guiCreateStaticImage(337,40,193,94,"images/2.png",false,wnd) 
GUIEditor_Image[3] = guiCreateStaticImage(42,261,156,91,"images/3.png",false,wnd) 
GUIEditor_Image[4] = guiCreateStaticImage(362,267,145,82,"images/4.png",false,wnd) 
GUIEditor_Button[1] = guiCreateButton(68,168,91,36,"موافق",false,wnd) 
GUIEditor_Button[2] = guiCreateButton(393,165,91,36,"موافق",false,wnd) 
GUIEditor_Button[3] = guiCreateButton(393,350,91,36,"موافق",false,wnd) 
GUIEditor_Button[4] = guiCreateButton(73,350,91,36,"موافق",false,wnd) 
  
bindKey("F7","down", 
function () 
    guiSetVisible(wnd,not guiGetVisible(wnd)) 
    showCursor(guiGetVisible(wnd)) 
    guiSetInputEnabled(guiGetVisible(wnd)) 
end) 
   
  
function onGuiClick (button, state, absoluteX, absoluteY) 
  if (source == GUIEditor_Button[1]) then  
    triggerServerEvent ("skin1",localPlayer)  
  elseif (source == GUIEditor_Button[2]) then  
    triggerServerEvent ("skin2", localPlayer)   
  elseif (source == GUIEditor_Button[3]) then  
    triggerServerEvent ("skin3",localPlayer) 
    elseif (source == GUIEditor_Button[4]) then  
    triggerServerEvent ("skin4",localPlayer) 
  end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
  
function Repskin()  
        TXD1 = engineLoadTXD ("skin/124.txd");  
        engineImportTXD (TXD1, 124);  
        DFF1 = engineLoadDFF ("skin/124.dff", 124);  
        engineReplaceModel (DFF1, 124);  
         
        TXD2 = engineLoadTXD ("skin/46.txd"); 
        engineImportTXD (TXD2, 46); 
        DFF2 = engineLoadDFF ("skin/46.dff", 46); 
        engineReplaceModel (DFF2, 46); 
         
         
        TXD3 = engineLoadTXD3 ("skin/102.txd"); 
        engineImportTXD (TXD3, 102); 
        DFF3 = engineLoadDFF ("skin/102.dff", 102); 
        engineReplaceModel (DFF3, 102); 
     
         
        TXD4 = engineLoadTXD4 ("skin/82.txd"); 
        engineImportTXD (TXD4, 82); 
        DFF4 = engineLoadDFF ("skin/82.dff", 82); 
        engineReplaceModel (DFF4, 82); 
         
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), Repskin) 
         
         
     
  

طيب تقدر تقولي وين الخطا في الكود حقي عشان اصلحه المرة الجاية :oops:

Link to comment

ذا الي سويته بس م ضبط

GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
wnd = guiCreateWindow(0.0012,0.0517,0.9987,0.945,"Skins BY !{F}p^Bo~L|B|/\/-M#",true) 
guiSetAlpha(wnd,1) 
GUIEditor_Label[1] = guiCreateLabel(0.0413,0.1252,0.3179,0.0617,"Skins BY !{F}p^Bo~L|B|/\/-M#",true,wnd) 
guiLabelSetColor(GUIEditor_Label[1],0,0,200) 
GUIEditor_Image[1] = guiCreateStaticImage(0.0325,0.1905,0.1352,0.164,"images/1.png",true,wnd) 
GUIEditor_Image[2] = guiCreateStaticImage(0.0438,0.4497,0.1277,0.1834,"images/2.png",true,wnd) 
GUIEditor_Image[3] = guiCreateStaticImage(0.0463,0.716,0.1189,0.1605,"images/3.png",true,wnd) 
GUIEditor_Image[4] = guiCreateStaticImage(0.3242,0.1887,0.1977,0.1728,"images/4.png",true,wnd) 
GUIEditor_Image[5] = guiCreateStaticImage(0.3267,0.4586,0.1952,0.1711,"images/5.png",true,wnd) 
GUIEditor_Image[6] = guiCreateStaticImage(0.3442,0.7072,0.169,0.1587,"images/6.png",true,wnd) 
GUIEditor_Image[7] = guiCreateStaticImage(0.7272,0.1834,0.1927,0.1658,"images/7.png",true,wnd) 
GUIEditor_Image[8] = guiCreateStaticImage(0.7234,0.4656,0.1852,0.1429,"images/8.png",true,wnd) 
GUIEditor_Image[9] = guiCreateStaticImage(0.7184,0.7037,0.219,0.1552,"images/9.png",true,wnd) 
GUIEditor_Button[1] = guiCreateButton(0.0338,0.3704,0.1339,0.0547,"موافق",true,wnd) 
GUIEditor_Button[2] = guiCreateButton(0.3579,0.3686,0.1339,0.0547,"موافق",true,wnd) 
GUIEditor_Button[3] = guiCreateButton(0.7584,0.3774,0.1339,0.0547,"موافق",true,wnd) 
GUIEditor_Button[4] = guiCreateButton(0.3592,0.6455,0.1339,0.0547,"موافق",true,wnd) 
GUIEditor_Button[5] = guiCreateButton(0.7572,0.6349,0.1339,0.0547,"موافق",true,wnd) 
GUIEditor_Button[6] = guiCreateButton(0.0401,0.6455,0.1339,0.0547,"موافق",true,wnd) 
GUIEditor_Button[7] = guiCreateButton(0.0401,0.8818,0.1339,0.0511,"موافق",true,wnd) 
GUIEditor_Button[8] = guiCreateButton(0.3655,0.8818,0.1339,0.0511,"موافق",true,wnd) 
GUIEditor_Button[9] = guiCreateButton(0.771,0.8818,0.1339,0.0511,"موافق",true,wnd) 
  
bindKey("F7","down", 
function () 
    guiSetVisible(wnd,not guiGetVisible(wnd)) 
    showCursor(guiGetVisible(wnd)) 
    guiSetInputEnabled(guiGetVisible(wnd)) 
end) 
  
  
function onGuiClick (button, state, absoluteX, absoluteY) 
  if (source == GUIEditor_Button[1]) then 
    triggerServerEvent ("skin1",localPlayer) 
  elseif (source == GUIEditor_Button[2]) then 
    triggerServerEvent ("skin2", localPlayer)   
  elseif (source == GUIEditor_Button[3]) then 
    triggerServerEvent ("skin3",localPlayer) 
  elseif (source == GUIEditor_Button[4]) then 
    triggerServerEvent ("skin4",localPlayer) 
  elseif (source == GUIEditor_Button[5]) then 
    triggerServerEvent ("skin5",localPlayer) 
  elseif (source == GUIEditor_Button[6]) then 
    triggerServerEvent ("skin6",localPlayer) 
  elseif (source == GUIEditor_Button[7]) then 
    triggerServerEvent ("skin7",localPlayer) 
  elseif (source == GUIEditor_Button[8]) then 
    triggerServerEvent ("skin8",localPlayer) 
  elseif (source == GUIEditor_Button[9]) then 
    triggerServerEvent ("skin9",localPlayer) 
  end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
  
function Repskin() 
        TXD1 = engineLoadTXD ("skin/124.txd"); 
        engineImportTXD (TXD1, 124); 
        DFF1 = engineLoadDFF ("skin/124.dff", 124); 
        engineReplaceModel (DFF1, 124); 
        
        TXD2 = engineLoadTXD ("skin/46.txd"); 
        engineImportTXD (TXD2, 46); 
        DFF2 = engineLoadDFF ("skin/46.dff", 46); 
        engineReplaceModel (DFF2, 46); 
        
        
        TXD3 = engineLoadTXD3 ("skin/102.txd"); 
        engineImportTXD (TXD3, 102); 
        DFF3 = engineLoadDFF ("skin/102.dff", 102); 
        engineReplaceModel (DFF3, 102); 
    
        
        TXD4 = engineLoadTXD4 ("skin/82.txd"); 
        engineImportTXD (TXD4, 82); 
        DFF4 = engineLoadDFF ("skin/82.dff", 82); 
        engineReplaceModel (DFF4, 82); 
         
        TXD5 = engineLoadTXD5 ("skin/17.txd"); 
        engineImportTXD (TXD5, 17); 
        DFF5 = engineLoadDFF ("skin/17.dff", 17); 
        engineReplaceModel (DFF5, 17); 
         
        TXD6 = engineLoadTXD6 ("skin/32.txd"); 
        engineImportTXD (TXD6, 32); 
        DFF6 = engineLoadDFF ("skin/32.dff", 32); 
        engineReplaceModel (DFF6, 32); 
         
        TXD7 = engineLoadTXD7 ("skin/35.txd"); 
        engineImportTXD (TXD7, 35); 
        DFF7 = engineLoadDFF ("skin/35.dff", 35); 
        engineReplaceModel (DFF7, 35); 
         
        TXD8 = engineLoadTXD8 ("skin/49.txd"); 
        engineImportTXD (TXD8, 49); 
        DFF8 = engineLoadDFF ("skin/49.dff", 49); 
        engineReplaceModel (DFF8, 49); 
         
        TXD9 = engineLoadTXD9 ("skin/54.txd"); 
        engineImportTXD (TXD9, 54); 
        DFF9 = engineLoadDFF ("skin/54.dff", 54); 
        engineReplaceModel (DFF9, 54) 
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), Repskin) 

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