Jump to content

وش الغلط هنا ؟


G.KinG

Recommended Posts

سلام عليكم

ابي الزر ما يقدر يضغظه الا بعد 5 ثواني

وذا الكود

Armor = guiCreateButton(10, 10, 76, 30, "Armor", false, GUIEditor.tab[1]) 
addEventHandler ( 'onClientGUIClick',Armor, 
function (      ) 
guiSetEnabled ( source,false ) 
setTimer ( guiSetEnabled,5000,1,source,true ) 
end,false ) 

Link to comment
الكود صحيح مافيه مشكله , هذا الكود كامل؟

اوهه خلاص زبطته انا حطيت الكود الي يخفي الزر في اخر الكلنت ههههه

وتوني حطيته تحت الزر وزبط لا هنت على المشاركه ذا بيست ^^

يغلق من اقرب مشرف لا هنتو

Link to comment

بما ان الموضوع لسى ما تقفل عندي مشكله ثانيه هنا

اني ابيه لما يختار من القريد لست Walk style

وضغظ set

تشتغل لكن ما تشتغل مادري وش الخلل

واذا ضغظ reset

يرجع لحالته العاديه

الزبده ذي الاكواد

       GUIEditor.tab[2] = guiCreateTab("Walking Styles", GUIEditor.tabpanel[1]) 
        GUIEditor.gridlist[1] = guiCreateGridList(7, 5, 156, 216, false, GUIEditor.tab[2]) 
        box = guiGridListAddColumn(GUIEditor.gridlist[1], "Walking style", 0.9) 
        for i = 1, 15 do 
        box = guiGridListAddRow(GUIEditor.gridlist[1]) 
        end 
        local packer = guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "Packer", false, false) 
        local ninja =  guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "Ninja", false, false) 
        local shuffle = guiGridListSetItemText(GUIEditor.gridlist[1], 2, 1, "Shuffle", false, false) 
        local oldman = guiGridListSetItemText(GUIEditor.gridlist[1], 3, 1, "Oldman", false, false) 
        local gang1 = guiGridListSetItemText(GUIEditor.gridlist[1], 4, 1, "Gang 1", false, false) 
        local gang2 = guiGridListSetItemText(GUIEditor.gridlist[1], 5, 1, "Gang 2", false, false) 
        local oldfatman = guiGridListSetItemText(GUIEditor.gridlist[1], 6, 1, "Old Fat Man", false, false) 
        local fatman = guiGridListSetItemText(GUIEditor.gridlist[1], 7, 1, "Fatman", false, false) 
        local jogger = guiGridListSetItemText(GUIEditor.gridlist[1], 8, 1, "Jogger", false, false) 
        local pro = guiGridListSetItemText(GUIEditor.gridlist[1], 10, 1, "PRO", false, false) 
        local shopping = guiGridListSetItemText(GUIEditor.gridlist[1], 11, 1, "Shopping", false, false) 
        local drunkman = guiGridListSetItemText(GUIEditor.gridlist[1], 12, 1, "Drunkman", false, false) 
        local busywoman =  guiGridListSetItemText(GUIEditor.gridlist[1], 13, 1, "Busywoman", false, false) 
        local oldwoman = guiGridListSetItemText(GUIEditor.gridlist[1], 14, 1, "Oldwoman", false, false) 
         
        Set = guiCreateButton(182, 141, 126, 35, "Set", false, GUIEditor.tab[2]) 
        Reset = guiCreateButton(182, 186, 126, 35, "Reset", false, GUIEditor.tab[2]) 

  
function select () 
local id = GUIEditor.gridlist[1] ( box ) 
if id == packer then 
setPedWalkingStyle ( player, 54 ) 
elseif id == ninja then  
setPedWalkingStyle ( player, 69 ) 
elseif id == shuffle then 
setPedWalkingStyle ( player, 119 ) 
elseif id == oldman then 
setPedWalkingStyle ( player, 120 ) 
elseif id == gang1 then 
setPedWalkingStyle ( player, 121 ) 
elseif id == gang2 then 
setPedWalkingStyle ( player, 122 ) 
elseif id == oldfatman then 
setPedWalkingStyle ( player, 123 ) 
elseif id == fatman then 
setPedWalkingStyle ( player, 124 ) 
elseif id == jogger then 
setPedWalkingStyle ( player, 125 ) 
elseif id == drunkman then 
setPedWalkingStyle ( player, 126 ) 
elseif id == shopping then 
setPedWalkingStyle ( player, 130 ) 
elseif id == busywoman then 
setPedWalkingStyle ( player, 131 ) 
elseif id == pro then 
setPedWalkingStyle ( player, 133 ) 
elseif id == oldwoman then 
setPedWalkingStyle ( player, 134 ) 
end 
end 
addEventHandler ( "onClientGUIClick", Set, select, false ) 

Link to comment

-- Client Side # 
Walkings = { 
    {'Packer', 54 }, 
    {'Ninja', 69 }, 
    {'Shuffle', 119 }, 
    {'Oldman', 120 }, 
    {'Gang 1', 121 }, 
    {'Gang 2', 122 }, 
    {'Old Fat Man', 123 }, 
    {'Fatman', 124 }, 
    {'Jogger', 125 }, 
    {'PRO', 133 }, 
    {'Shopping', 130 }, 
    {'Drunkman', 126 }, 
    {'Busywoman', 131 }, 
    {'Oldwoman', 134 } 
} 
  
     
GUIEditor.tab[2] = guiCreateTab("Walking Styles", GUIEditor.tabpanel[1]) 
GUIEditor.gridlist[1] = guiCreateGridList(7, 5, 156, 216, false, GUIEditor.tab[2]) 
guiGridListAddColumn(GUIEditor.gridlist[1], "Walking style", 0.9) 
Set = guiCreateButton(182, 141, 126, 35, "Set", false, GUIEditor.tab[2]) 
Reset = guiCreateButton(182, 186, 126, 35, "Reset", false, GUIEditor.tab[2]) 
  
for k,v in ipairs(Walkings) do 
    local row = guiGridListAddRow(GUIEditor.gridlist[1]) 
        guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, v[1], false, false) 
            guiGridListSetItemData(GUIEditor.gridlist[1],row,1,v[2]) 
end 
         
addEventHandler('onClientGUIClick',root,function() 
    if source == Set then 
        if guiGridListGetSelectedItem(GUIEditor.gridlist[1]) ~= -1 then 
            local selected = guiGridListGetItemData(GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1])) 
                setPedWalkingStyle(localPlayer,selected) 
        end 
    elseif source == Reset then 
                setPedWalkingStyle(localPlayer,0) 
        end 
    end 
) 

GUIEditor الكود موب كامل ينقصك جدول

Edited by Guest
Link to comment

والله حاولت بس ما ما زبط :\

الزبده ذي الاكواد كاملهـ

ولو احد يكمل حقت الـ skins جزاه الله خيرآ

واعذروني على الهرائس

:lol:

GUIEditor = { 
    tab = {}, 
    staticimage = {}, 
    tabpanel = {}, 
    label = {}, 
    button = {}, 
    window = {}, 
    gridlist = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(225, 55, 369, 492, "VIP System", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetVisible(GUIEditor.window[1], false) 
        GUIEditor.staticimage[1] = guiCreateStaticImage(9, 26, 351, 156, "VIPImage.png", false, GUIEditor.window[1]) 
        GUIEditor.tabpanel[1] = guiCreateTabPanel(11, 194, 348, 255, false, GUIEditor.window[1]) 
        GUIEditor.tab[1] = guiCreateTab("Menu Panel", GUIEditor.tabpanel[1]) 
        Armor = guiCreateButton(10, 10, 76, 30, "Armor", false, GUIEditor.tab[1]) 
        addEventHandler ( 'onClientGUIClick',Armor, 
        function (      ) 
        guiSetEnabled ( source,false ) 
        setTimer ( guiSetEnabled,100000,1,source,true ) 
        end,false ) 
        Health = guiCreateButton(262, 14, 76, 30, "Health", false, GUIEditor.tab[1]) 
        addEventHandler ( 'onClientGUIClick',Health, 
        function (      ) 
        guiSetEnabled ( source,false ) 
        setTimer ( guiSetEnabled,100000,1,source,true ) 
        end,false ) 
        Fix = guiCreateButton(10, 62, 76, 30, "Fix Vehicle", false, GUIEditor.tab[1]) 
        Jetpack = guiCreateButton(136, 62, 76, 30, "Jetpack", false, GUIEditor.tab[1]) 
        VIPVehicle = guiCreateButton(136, 10, 76, 30, "Vehicle VIP", false, GUIEditor.tab[1])   
        Walkings = { 
        {'Packer', 54 }, 
    {'Ninja', 69 }, 
    {'Shuffle', 119 }, 
    {'Oldman', 120 }, 
    {'Gang 1', 121 }, 
    {'Gang 2', 122 }, 
    {'Old Fat Man', 123 }, 
    {'Fatman', 124 }, 
    {'Jogger', 125 }, 
    {'PRO', 133 }, 
    {'Shopping', 130 }, 
    {'Drunkman', 126 }, 
    {'Busywoman', 131 }, 
    {'Oldwoman', 134 } 
} 
  
    
GUIEditor.tab[2] = guiCreateTab("Walking Styles", GUIEditor.tabpanel[1]) 
GUIEditor.gridlist[1] = guiCreateGridList(7, 5, 156, 216, false, GUIEditor.tab[2]) 
guiGridListAddColumn(GUIEditor.gridlist[1], "Walking style", 0.9) 
Set = guiCreateButton(182, 141, 126, 35, "Set", false, GUIEditor.tab[2]) 
Reset = guiCreateButton(182, 186, 126, 35, "Reset", false, GUIEditor.tab[2]) 
  
for k,v in ipairs(Walkings) do 
    local row = guiGridListAddRow(GUIEditor.gridlist[1]) 
        guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, v[1], false, false) 
            guiGridListSetItemData(GUIEditor.gridlist[1],row,1,v[2]) 
end 
        
addEventHandler('onClientGUIClick',root,function() 
    if source == Set then 
        if guiGridListGetSelectedItem(grid) ~= -1 then 
            local selected = guiGridListGetItemData(grid,guiGridListGetSelectedItem(grid)) 
                setPedWalkingStyle(localPlayer,selected) 
        end 
    elseif source == Reset then 
                setPedWalkingStyle(localPlayer,0) 
        end 
    end 
) 
        GUIEditor.tab[4] = guiCreateTab("Skins", GUIEditor.tabpanel[1]) 
        GUIEditor.gridlist[2] = guiCreateGridList(8, 4, 156, 216, false, GUIEditor.tab[4]) 
        guiGridListAddColumn(GUIEditor.gridlist[2], "VIP Skins", 0.9) 
        for i = 1, 5 do 
        guiGridListAddRow(GUIEditor.gridlist[2]) 
        end 
        guiGridListSetItemText(GUIEditor.gridlist[2], 0, 1, "Skin Figure", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[2], 1, 1, "Skin Zombie", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[2], 2, 1, "Skin Scream", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[2], 3, 1, "Skin Ske", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[2], 4, 1, "Skin Zombie 2", false, false) 
        SetSkin = guiCreateButton(200, 188, 126, 35, "Set", false, GUIEditor.tab[4]) 
        Close = guiCreateButton(303, 454, 56, 28, "Close", false, GUIEditor.window[1]) 
        GUIEditor.label[1] = guiCreateLabel(11, 457, 273, 25, "All copyright to G.KinG", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[1], "default-bold-small") 
        guiLabelSetColor(GUIEditor.label[1], 56, 197, 196)     
    end 
) 
  
show = function() 
if ( guiGetVisible ( GUIEditor.window[1] ) == true ) then 
 guiSetVisible ( GUIEditor.window[1] ,false ) 
 showCursor (false ) 
 guiSetInputEnabled(false) 
elseif ( guiGetVisible ( GUIEditor.window[1] ) == false ) then 
 guiSetVisible ( GUIEditor.window[1] ,true ) 
 showCursor (true) 
end 
end 
addEvent("bindKey",true) 
addEventHandler("bindKey",root,function() 
bindKey ( "F7" , "down" , show ) 
end) 
  
addEventHandler("onClientGUIClick", root, 
  function() 
if ( source == Close ) then 
  guiSetVisible ( GUIEditor.window[1] , false) 
  showCursor ( false ) 
  end 
end 
) 
  
addEventHandler("onClientResourceStart",resourceRoot, 
function() 
txd = engineLoadTXD("Skins/figure.txd") 
engineImportTXD(txd,12) 
dff = engineLoadDFF("Skins/figure.dff",0) 
engineReplaceModel(dff,12) 
end) 
  
addEventHandler("onClientResourceStart",resourceRoot, 
function() 
txd = engineLoadTXD("Skins/satan.txd") 
engineImportTXD(txd,63) 
dff = engineLoadDFF("Skins/satan.dff",0) 
engineReplaceModel(dff,63) 
end) 
  
addEventHandler("onClientResourceStart",resourceRoot, 
function() 
txd = engineLoadTXD("Skins/scream.txd") 
engineImportTXD(txd,64) 
dff = engineLoadDFF("Skins/scream.dff",0) 
engineReplaceModel(dff,64) 
end) 
  
addEventHandler("onClientResourceStart",resourceRoot, 
function() 
txd = engineLoadTXD("Skins/ske.txd") 
engineImportTXD(txd,75) 
dff = engineLoadDFF("Skins/ske.dff",0) 
engineReplaceModel(dff,75) 
end) 
  
addEventHandler("onClientResourceStart",resourceRoot, 
function() 
txd = engineLoadTXD("Skins/zumbi4.txd") 
engineImportTXD(txd,87) 
dff = engineLoadDFF("Skins/zumbi4.dff",0) 
engineReplaceModel(dff,87) 
end) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function(button, state, absoluteX, absoluteY) 
if ( source ==  Health ) then 
triggerServerEvent("Health",getLocalPlayer()) 
end 
end) 
addEventHandler ("onClientGUIClick", getRootElement(), 
function(button, state, absoluteX, absoluteY) 
if ( source ==  Armor ) then 
triggerServerEvent("Armor",getLocalPlayer()) 
end 
end) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function(button, state, absoluteX, absoluteY) 
if ( source ==  Fix ) then 
triggerServerEvent("Fix",getLocalPlayer()) 
end 
end) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function(button, state, absoluteX, absoluteY) 
if ( source ==  VIPVehicle ) then 
triggerServerEvent("VIPVehicle",getLocalPlayer()) 
end 
end) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function(button, state, absoluteX, absoluteY) 
if ( source ==  Jetpack ) then 
triggerServerEvent("Jetpack",getLocalPlayer()) 
end 
end) 
function open () 
guiSetVisible ( GUIEditor.window[1], true ) 
showCursor ( true ) 
end 
addCommandHandler ( "vip", open ) 
  
  

Link to comment

-- Client Side # 
GUIEditor = { 
    tab = {}, 
    staticimage = {}, 
    tabpanel = {}, 
    label = {}, 
    button = {}, 
    window = {}, 
    gridlist = {} 
} 
  
Walkings = { 
    {'Packer', 54 }, 
    {'Ninja', 69 }, 
    {'Shuffle', 119 }, 
    {'Oldman', 120 }, 
    {'Gang 1', 121 }, 
    {'Gang 2', 122 }, 
    {'Old Fat Man', 123 }, 
    {'Fatman', 124 }, 
    {'Jogger', 125 }, 
    {'PRO', 133 }, 
    {'Shopping', 130 }, 
    {'Drunkman', 126 }, 
    {'Busywoman', 131 }, 
    {'Oldwoman', 134 } 
} 
  
Skins = { 
    {'Skin Figure', id }, 
    {'Skin Zombie', id }, 
    {'Skin Zombie 2', id } 
    {'Skin Scream', id }, 
    {'Skin Ske', id } 
} 
  
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(225, 55, 369, 492, "VIP System", false) 
        GUIEditor.staticimage[1] = guiCreateStaticImage(9, 26, 351, 156, "VIPImage.png", false, GUIEditor.window[1]) 
        GUIEditor.tabpanel[1] = guiCreateTabPanel(11, 194, 348, 255, false, GUIEditor.window[1]) 
        GUIEditor.tab[1] = guiCreateTab("Menu Panel", GUIEditor.tabpanel[1]) 
        GUIEditor.tab[2] = guiCreateTab("Walking Styles", GUIEditor.tabpanel[1]) 
        GUIEditor.tab[4] = guiCreateTab("Skins", GUIEditor.tabpanel[1]) 
        Armor = guiCreateButton(10, 10, 76, 30, "Armor", false, GUIEditor.tab[1]) 
        Health = guiCreateButton(262, 14, 76, 30, "Health", false, GUIEditor.tab[1]) 
        Fix = guiCreateButton(10, 62, 76, 30, "Fix Vehicle", false, GUIEditor.tab[1]) 
        Jetpack = guiCreateButton(136, 62, 76, 30, "Jetpack", false, GUIEditor.tab[1]) 
        VIPVehicle = guiCreateButton(136, 10, 76, 30, "Vehicle VIP", false, GUIEditor.tab[1])  
        Set = guiCreateButton(182, 141, 126, 35, "Set", false, GUIEditor.tab[2]) 
        Reset = guiCreateButton(182, 186, 126, 35, "Reset", false, GUIEditor.tab[2]) 
        SetSkin = guiCreateButton(200, 188, 126, 35, "Set", false, GUIEditor.tab[4]) 
        Close = guiCreateButton(303, 454, 56, 28, "Close", false, GUIEditor.window[1])       
        GUIEditor.gridlist[1] = guiCreateGridList(7, 5, 156, 216, false, GUIEditor.tab[2]) 
        GUIEditor.gridlist[2] = guiCreateGridList(8, 4, 156, 216, false, GUIEditor.tab[4]) 
        GUIEditor.label[1] = guiCreateLabel(11, 457, 273, 25, "All copyright to G.KinG", false, GUIEditor.window[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[2], "VIP Skins", 0.9) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Walking style", 0.9) 
        guiSetFont(GUIEditor.label[1], "default-bold-small") 
        guiLabelSetColor(GUIEditor.label[1], 56, 197, 196)   
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetVisible(GUIEditor.window[1], false) 
    end 
) 
  
for k,v in ipairs(Walkings) do 
    local row = guiGridListAddRow(GUIEditor.gridlist[1]) 
        guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, v[1], false, false) 
            guiGridListSetItemData(GUIEditor.gridlist[1],row,1,v[2]) 
end 
  
for k,v in ipairs (Skins) do 
    local row = guiGridListAddRow(GUIEditor.gridlist[2]) 
        guiGridListSetItemText(GUIEditor.gridlist[2], row, 1, v[1], false, false) 
            guiGridListSetItemData(GUIEditor.gridlist[2], row,1,v[2]) 
end 
  
addEventHandler ( 'onClientGUIClick',root,function () 
    if source == Armor then 
        triggerServerEvent("Armor",localPlayer) 
        guiSetEnabled ( source,false ) 
        setTimer ( guiSetEnabled,100000,1,source,true ) 
    elseif source == Health then 
        triggerServerEvent("Health",localPlayer) 
        guiSetEnabled ( source,false ) 
        setTimer ( guiSetEnabled,100000,1,source,true ) 
    elseif source == Fix then 
        triggerServerEvent("Fix",localPlayer) 
    elseif source == Jetpack then 
        triggerServerEvent("Jetpack",localPlayer) 
    elseif source == VIPVehicle then 
        triggerServerEvent("VIPVehicle",localPlayer) 
    elseif source == Set then 
        if guiGridListGetSelectedItem(GUIEditor.gridlist[1]) ~= -1 then 
            local selected = guiGridListGetItemData(GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1])) 
                setPedWalkingStyle(localPlayer,selected) 
        end 
    elseif source == Reset then 
            setPedWalkingStyle(localPlayer,0) 
    elseif source == SetSkin then 
        if guiGridListGetSelectedItem(GUIEditor.gridlist[2]) ~= -1 then 
            local selected = guiGridListGetItemData(GUIEditor.gridlist[2],guiGridListGetSelectedItem(GUIEditor.gridlist[2])) 
                setElementModel(localPlayer,selected) 
        end 
    elseif source == Close then 
        guiSetVisible(GUIEditor.window[1],false) 
        showCursor(false) 
        end 
    end 
) 
  
  
  
  
addEventHandler("onClientResourceStart",resourceRoot,function() 
    engineImportTXD(engineLoadTXD("Skins/figure.txd"),12)  
    engineImportTXD(engineLoadTXD("Skins/satan.txd"),63) 
    engineImportTXD(engineLoadTXD("Skins/scream.txd"),64) 
    engineImportTXD(engineLoadTXD("Skins/ske.txd"),75) 
    engineImportTXD(engineLoadTXD("Skins/zumbi4.txd"),87) 
    engineReplaceModel(engineLoadDFF("Skins/figure.dff",0),12) 
    engineReplaceModel(engineLoadDFF("Skins/satan.dff",0),63) 
    engineReplaceModel(engineLoadDFF("Skins/scream.dff",0),64) 
    engineReplaceModel(engineLoadDFF("Skins/ske.dff",0),75) 
    engineReplaceModel(engineLoadDFF("Skins/zumbi4.dff",0),87) 
    end 
) 
  
show = function() 
    guiSetVisible ( GUIEditor.window[1] ,not guiGetVisible ( GUIEditor.window[1] ) ) 
    showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) 
    guiSetInputEnabled(guiGetVisible ( GUIEditor.window[1] )) 
  
end 
  
addEvent("bindKey",true) 
addEventHandler("bindKey",root,function() 
    bindKey ( "F7" , "down" , show ) 
    end 
) 
  
function open () 
    guiSetVisible ( GUIEditor.window[1], true ) 
        showCursor ( true ) 
    end 
addCommandHandler ( "vip", open ) 
Link to comment

ما زبط :\

والدي بوق يقول عندي اخطاء في سطر

76 - 77 - 75

-- Client Side # 
GUIEditor = { 
    tab = {}, 
    staticimage = {}, 
    tabpanel = {}, 
    label = {}, 
    button = {}, 
    window = {}, 
    gridlist = {} 
} 
  
Walkings = { 
    {'Packer', 54 }, 
    {'Ninja', 69 }, 
    {'Shuffle', 119 }, 
    {'Oldman', 120 }, 
    {'Gang 1', 121 }, 
    {'Gang 2', 122 }, 
    {'Old Fat Man', 123 }, 
    {'Fatman', 124 }, 
    {'Jogger', 125 }, 
    {'PRO', 133 }, 
    {'Shopping', 130 }, 
    {'Drunkman', 126 }, 
    {'Busywoman', 131 }, 
    {'Oldwoman', 134 } 
} 
  
     
Skins = { 
    {'Skin Figure', 12 }, 
    {'Skin Zombie', 63 }, 
    {'Skin Zombie 2', 64 }, 
    {'Skin Scream', 75 }, 
    {'Skin Ske', 87 } 
} 
  
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(225, 55, 369, 492, "VIP System", false) 
        GUIEditor.staticimage[1] = guiCreateStaticImage(9, 26, 351, 156, "VIPImage.png", false, GUIEditor.window[1]) 
        GUIEditor.tabpanel[1] = guiCreateTabPanel(11, 194, 348, 255, false, GUIEditor.window[1]) 
        GUIEditor.tab[1] = guiCreateTab("Menu Panel", GUIEditor.tabpanel[1]) 
        GUIEditor.tab[2] = guiCreateTab("Walking Styles", GUIEditor.tabpanel[1]) 
        GUIEditor.tab[4] = guiCreateTab("Skins", GUIEditor.tabpanel[1]) 
        Armor = guiCreateButton(10, 10, 76, 30, "Armor", false, GUIEditor.tab[1]) 
        Health = guiCreateButton(262, 14, 76, 30, "Health", false, GUIEditor.tab[1]) 
        Fix = guiCreateButton(10, 62, 76, 30, "Fix Vehicle", false, GUIEditor.tab[1]) 
        Jetpack = guiCreateButton(136, 62, 76, 30, "Jetpack", false, GUIEditor.tab[1]) 
        VIPVehicle = guiCreateButton(136, 10, 76, 30, "Vehicle VIP", false, GUIEditor.tab[1]) 
        Set = guiCreateButton(182, 141, 126, 35, "Set", false, GUIEditor.tab[2]) 
        Reset = guiCreateButton(182, 186, 126, 35, "Reset", false, GUIEditor.tab[2]) 
        SetSkin = guiCreateButton(200, 188, 126, 35, "Set", false, GUIEditor.tab[4]) 
        Close = guiCreateButton(303, 454, 56, 28, "Close", false, GUIEditor.window[1])      
        GUIEditor.gridlist[1] = guiCreateGridList(7, 5, 156, 216, false, GUIEditor.tab[2]) 
        GUIEditor.gridlist[2] = guiCreateGridList(8, 4, 156, 216, false, GUIEditor.tab[4]) 
        GUIEditor.label[1] = guiCreateLabel(11, 457, 273, 25, "All copyright to G.KinG , Special thanks to The Best ", false, GUIEditor.window[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[2], "VIP Skins", 0.9) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Walking style", 0.9) 
        guiSetFont(GUIEditor.label[1], "default-bold-small") 
        guiLabelSetColor(GUIEditor.label[1], 56, 197, 196)   
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetVisible(GUIEditor.window[1], false) 
    end 
) 
  
for k,v in ipairs(Walkings) do 
    local row = guiGridListAddRow(GUIEditor.gridlist[1]) 
        guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, v[1], false, false) 
            guiGridListSetItemData(GUIEditor.gridlist[1],row,1,v[2]) 
end 
  
for k,v in ipairs (Skins) do 
    local row = guiGridListAddRow(GUIEditor.gridlist[2]) 
        guiGridListSetItemText(GUIEditor.gridlist[2], row, 1, v[1], false, false) 
            guiGridListSetItemData(GUIEditor.gridlist[2], row,1,v[2]) 
end 
  
addEventHandler ( 'onClientGUIClick',root,function () 
    if source == Armor then 
        triggerServerEvent("Armor",localPlayer) 
        guiSetEnabled ( source,false ) 
        setTimer ( guiSetEnabled,100000,1,source,true ) 
    elseif source == Health then 
        triggerServerEvent("Health",localPlayer) 
        guiSetEnabled ( source,false ) 
        setTimer ( guiSetEnabled,100000,1,source,true ) 
    elseif source == Fix then 
        triggerServerEvent("Fix",localPlayer) 
    elseif source == Jetpack then 
        triggerServerEvent("Jetpack",localPlayer) 
    elseif source == VIPVehicle then 
        triggerServerEvent("VIPVehicle",localPlayer) 
    elseif source == Set then 
        if guiGridListGetSelectedItem(GUIEditor.gridlist[1]) ~= -1 then 
            local selected = guiGridListGetItemData(GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1])) 
                setPedWalkingStyle(localPlayer,selected) 
        end 
    elseif source == Reset then 
            setPedWalkingStyle(localPlayer,0) 
    elseif source == SetSkin then 
        if guiGridListGetSelectedItem(GUIEditor.gridlist[2]) ~= -1 then 
            local selected = guiGridListGetItemData(GUIEditor.gridlist[2],guiGridListGetSelectedItem(GUIEditor.gridlist[2])) 
                setElementModel(localPlayer,selected) 
        end 
    elseif source == Close then 
        guiSetVisible(GUIEditor.window[1],false) 
        showCursor(false) 
        end 
    end 
) 
  
  
  
  
addEventHandler("onClientResourceStart",resourceRoot,function() 
    engineImportTXD(engineLoadTXD("Skins/figure.txd"),12) 
    engineImportTXD(engineLoadTXD("Skins/satan.txd"),63) 
    engineImportTXD(engineLoadTXD("Skins/scream.txd"),64) 
    engineImportTXD(engineLoadTXD("Skins/ske.txd"),75) 
    engineImportTXD(engineLoadTXD("Skins/zumbi4.txd"),87) 
    engineReplaceModel(engineLoadDFF("Skins/figure.dff",0),12) 
    engineReplaceModel(engineLoadDFF("Skins/satan.dff",0),63) 
    engineReplaceModel(engineLoadDFF("Skins/scream.dff",0),64) 
    engineReplaceModel(engineLoadDFF("Skins/ske.dff",0),75) 
    engineReplaceModel(engineLoadDFF("Skins/zumbi4.dff",0),87) 
    end 
) 
  
show = function() 
    guiSetVisible ( GUIEditor.window[1] ,not guiGetVisible ( GUIEditor.window[1] ) ) 
    showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) 
    guiSetInputEnabled(guiGetVisible ( GUIEditor.window[1] )) 
  
end 
  
addEvent("bindKey",true) 
addEventHandler("bindKey",root,function() 
    bindKey ( "F7" , "down" , show ) 
    end 
) 
  
function open () 
    guiSetVisible ( GUIEditor.window[1], true ) 
        showCursor ( true ) 
    end 
addCommandHandler ( "vip", open ) 

Link to comment

وعندي طلب صغير ثاني

ان مود الـ player blips يخلي الاعبين لون البلب حقهم اخضر

انا ابيه يكون على لون التيم حقهم

مثلا هو في تيم لونه احمر يكون في الرادر لون البلب حقه احمر

وذي الاكواد

root = getRootElement () 
color = { 0, 255, 0 } 
players = {} 
resourceRoot = getResourceRootElement ( getThisResource () ) 
  
function onResourceStart ( resource ) 
    for id, player in ipairs( getElementsByType ( "player" ) ) do 
        if ( players[player] ) then 
            createBlipAttachedTo ( player, 0, 2, players[source][1], players[source][2], players[source][3] ) 
        else 
            createBlipAttachedTo ( player, 0, 2, color[1], color[2], color[3] ) 
        end 
    end 
end 
  
function onPlayerSpawn ( spawnpoint ) 
    if ( players[source] ) then 
        createBlipAttachedTo ( source, 0, 2, players[source][1], players[source][2], players[source][3] ) 
    else 
        createBlipAttachedTo ( source, 0, 2, color[1], color[2], color[3] ) 
    end 
end 
  
function onPlayerQuit () 
    destroyBlipsAttachedTo ( source ) 
end 
  
function onPlayerWasted ( totalammo, killer, killerweapon ) 
    destroyBlipsAttachedTo ( source ) 
end 
  
function setBlipsColor ( source, commandName, r, g, b ) 
    if ( tonumber ( b ) ) then 
        color = { tonumber ( r ), tonumber ( g ), tonumber ( b ) } 
        for id, player in ipairs( getElementsByType ( "player" ) ) do 
            destroyBlipsAttachedTo ( player ) 
            if ( players[player] ) then 
                createBlipAttachedTo ( player, 0, 2, players[source][1], players[source][2], players[source][3] ) 
            else 
                createBlipAttachedTo ( player, 0, 2, color[1], color[2], color[3] ) 
            end 
        end 
    end 
end 
  
function setBlipColor ( source, commandName, r, g, b ) 
    if ( tonumber ( b ) ) then 
        destroyBlipsAttachedTo ( source ) 
        players[source] = { tonumber ( r ), tonumber ( g ), tonumber ( b ) } 
        createBlipAttachedTo ( source, 0, 2, players[source][1], players[source][2], players[source][3] ) 
    end 
end 
  
addCommandHandler ( "setblipscolor", setBlipsColor ) 
addCommandHandler ( "setblipcolor", setBlipColor ) 
addEventHandler ( "onResourceStart", resourceRoot, onResourceStart ) 
addEventHandler ( "onPlayerSpawn", root, onPlayerSpawn ) 
addEventHandler ( "onPlayerQuit", root, onPlayerQuit ) 
addEventHandler ( "onPlayerWasted", root, onPlayerWasted ) 
  
function destroyBlipsAttachedTo(player) 
    local attached = getAttachedElements ( player ) 
    if ( attached ) then 
        for k,element in ipairs(attached) do 
            if getElementType ( element ) == "blip" then 
                destroyElement ( element ) 
            end 
        end 
    end 
end 

Link to comment
ما زبط :\

والدي بوق يقول عندي اخطاء في سطر

76 - 77 - 75

-- Client Side # 
GUIEditor = { 
    tab = {}, 
    staticimage = {}, 
    tabpanel = {}, 
    label = {}, 
    button = {}, 
    window = {}, 
    gridlist = {} 
} 
  
Walkings = { 
    {'Packer', 54 }, 
    {'Ninja', 69 }, 
    {'Shuffle', 119 }, 
    {'Oldman', 120 }, 
    {'Gang 1', 121 }, 
    {'Gang 2', 122 }, 
    {'Old Fat Man', 123 }, 
    {'Fatman', 124 }, 
    {'Jogger', 125 }, 
    {'PRO', 133 }, 
    {'Shopping', 130 }, 
    {'Drunkman', 126 }, 
    {'Busywoman', 131 }, 
    {'Oldwoman', 134 } 
} 
  
     
Skins = { 
    {'Skin Figure', 12 }, 
    {'Skin Zombie', 63 }, 
    {'Skin Zombie 2', 64 }, 
    {'Skin Scream', 75 }, 
    {'Skin Ske', 87 } 
} 
  
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(225, 55, 369, 492, "VIP System", false) 
        GUIEditor.staticimage[1] = guiCreateStaticImage(9, 26, 351, 156, "VIPImage.png", false, GUIEditor.window[1]) 
        GUIEditor.tabpanel[1] = guiCreateTabPanel(11, 194, 348, 255, false, GUIEditor.window[1]) 
        GUIEditor.tab[1] = guiCreateTab("Menu Panel", GUIEditor.tabpanel[1]) 
        GUIEditor.tab[2] = guiCreateTab("Walking Styles", GUIEditor.tabpanel[1]) 
        GUIEditor.tab[4] = guiCreateTab("Skins", GUIEditor.tabpanel[1]) 
        Armor = guiCreateButton(10, 10, 76, 30, "Armor", false, GUIEditor.tab[1]) 
        Health = guiCreateButton(262, 14, 76, 30, "Health", false, GUIEditor.tab[1]) 
        Fix = guiCreateButton(10, 62, 76, 30, "Fix Vehicle", false, GUIEditor.tab[1]) 
        Jetpack = guiCreateButton(136, 62, 76, 30, "Jetpack", false, GUIEditor.tab[1]) 
        VIPVehicle = guiCreateButton(136, 10, 76, 30, "Vehicle VIP", false, GUIEditor.tab[1]) 
        Set = guiCreateButton(182, 141, 126, 35, "Set", false, GUIEditor.tab[2]) 
        Reset = guiCreateButton(182, 186, 126, 35, "Reset", false, GUIEditor.tab[2]) 
        SetSkin = guiCreateButton(200, 188, 126, 35, "Set", false, GUIEditor.tab[4]) 
        Close = guiCreateButton(303, 454, 56, 28, "Close", false, GUIEditor.window[1])      
        GUIEditor.gridlist[1] = guiCreateGridList(7, 5, 156, 216, false, GUIEditor.tab[2]) 
        GUIEditor.gridlist[2] = guiCreateGridList(8, 4, 156, 216, false, GUIEditor.tab[4]) 
        GUIEditor.label[1] = guiCreateLabel(11, 457, 273, 25, "All copyright to G.KinG , Special thanks to The Best ", false, GUIEditor.window[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[2], "VIP Skins", 0.9) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Walking style", 0.9) 
        guiSetFont(GUIEditor.label[1], "default-bold-small") 
        guiLabelSetColor(GUIEditor.label[1], 56, 197, 196)   
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetVisible(GUIEditor.window[1], false) 
    end 
) 
  
for k,v in ipairs(Walkings) do 
    local row = guiGridListAddRow(GUIEditor.gridlist[1]) 
        guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, v[1], false, false) 
            guiGridListSetItemData(GUIEditor.gridlist[1],row,1,v[2]) 
end 
  
for k,v in ipairs (Skins) do 
    local row = guiGridListAddRow(GUIEditor.gridlist[2]) 
        guiGridListSetItemText(GUIEditor.gridlist[2], row, 1, v[1], false, false) 
            guiGridListSetItemData(GUIEditor.gridlist[2], row,1,v[2]) 
end 
  
addEventHandler ( 'onClientGUIClick',root,function () 
    if source == Armor then 
        triggerServerEvent("Armor",localPlayer) 
        guiSetEnabled ( source,false ) 
        setTimer ( guiSetEnabled,100000,1,source,true ) 
    elseif source == Health then 
        triggerServerEvent("Health",localPlayer) 
        guiSetEnabled ( source,false ) 
        setTimer ( guiSetEnabled,100000,1,source,true ) 
    elseif source == Fix then 
        triggerServerEvent("Fix",localPlayer) 
    elseif source == Jetpack then 
        triggerServerEvent("Jetpack",localPlayer) 
    elseif source == VIPVehicle then 
        triggerServerEvent("VIPVehicle",localPlayer) 
    elseif source == Set then 
        if guiGridListGetSelectedItem(GUIEditor.gridlist[1]) ~= -1 then 
            local selected = guiGridListGetItemData(GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1])) 
                setPedWalkingStyle(localPlayer,selected) 
        end 
    elseif source == Reset then 
            setPedWalkingStyle(localPlayer,0) 
    elseif source == SetSkin then 
        if guiGridListGetSelectedItem(GUIEditor.gridlist[2]) ~= -1 then 
            local selected = guiGridListGetItemData(GUIEditor.gridlist[2],guiGridListGetSelectedItem(GUIEditor.gridlist[2])) 
                setElementModel(localPlayer,selected) 
        end 
    elseif source == Close then 
        guiSetVisible(GUIEditor.window[1],false) 
        showCursor(false) 
        end 
    end 
) 
  
  
  
  
addEventHandler("onClientResourceStart",resourceRoot,function() 
    engineImportTXD(engineLoadTXD("Skins/figure.txd"),12) 
    engineImportTXD(engineLoadTXD("Skins/satan.txd"),63) 
    engineImportTXD(engineLoadTXD("Skins/scream.txd"),64) 
    engineImportTXD(engineLoadTXD("Skins/ske.txd"),75) 
    engineImportTXD(engineLoadTXD("Skins/zumbi4.txd"),87) 
    engineReplaceModel(engineLoadDFF("Skins/figure.dff",0),12) 
    engineReplaceModel(engineLoadDFF("Skins/satan.dff",0),63) 
    engineReplaceModel(engineLoadDFF("Skins/scream.dff",0),64) 
    engineReplaceModel(engineLoadDFF("Skins/ske.dff",0),75) 
    engineReplaceModel(engineLoadDFF("Skins/zumbi4.dff",0),87) 
    end 
) 
  
show = function() 
    guiSetVisible ( GUIEditor.window[1] ,not guiGetVisible ( GUIEditor.window[1] ) ) 
    showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) 
    guiSetInputEnabled(guiGetVisible ( GUIEditor.window[1] )) 
  
end 
  
addEvent("bindKey",true) 
addEventHandler("bindKey",root,function() 
    bindKey ( "F7" , "down" , show ) 
    end 
) 
  
function open () 
    guiSetVisible ( GUIEditor.window[1], true ) 
        showCursor ( true ) 
    end 
addCommandHandler ( "vip", open ) 

Link to comment

كان عندي خطأ بسيط اني حطيت اللوب خارج الحدث,

-- Client Side # 
GUIEditor = { 
    tab = {}, 
    staticimage = {}, 
    tabpanel = {}, 
    label = {}, 
    button = {}, 
    window = {}, 
    gridlist = {} 
} 
  
Walkings = { 
    {'Packer', 54 }, 
    {'Ninja', 69 }, 
    {'Shuffle', 119 }, 
    {'Oldman', 120 }, 
    {'Gang 1', 121 }, 
    {'Gang 2', 122 }, 
    {'Old Fat Man', 123 }, 
    {'Fatman', 124 }, 
    {'Jogger', 125 }, 
    {'PRO', 133 }, 
    {'Shopping', 130 }, 
    {'Drunkman', 126 }, 
    {'Busywoman', 131 }, 
    {'Oldwoman', 134 } 
} 
  
    
Skins = { 
    {'Skin Figure', 12 }, 
    {'Skin Zombie', 63 }, 
    {'Skin Zombie 2', 64 }, 
    {'Skin Scream', 75 }, 
    {'Skin Ske', 87 } 
} 
  
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(225, 55, 369, 492, "VIP System", false) 
        GUIEditor.staticimage[1] = guiCreateStaticImage(9, 26, 351, 156, "VIPImage.png", false, GUIEditor.window[1]) 
        GUIEditor.tabpanel[1] = guiCreateTabPanel(11, 194, 348, 255, false, GUIEditor.window[1]) 
        GUIEditor.tab[1] = guiCreateTab("Menu Panel", GUIEditor.tabpanel[1]) 
        GUIEditor.tab[2] = guiCreateTab("Walking Styles", GUIEditor.tabpanel[1]) 
        GUIEditor.tab[4] = guiCreateTab("Skins", GUIEditor.tabpanel[1]) 
        Armor = guiCreateButton(10, 10, 76, 30, "Armor", false, GUIEditor.tab[1]) 
        Health = guiCreateButton(262, 14, 76, 30, "Health", false, GUIEditor.tab[1]) 
        Fix = guiCreateButton(10, 62, 76, 30, "Fix Vehicle", false, GUIEditor.tab[1]) 
        Jetpack = guiCreateButton(136, 62, 76, 30, "Jetpack", false, GUIEditor.tab[1]) 
        VIPVehicle = guiCreateButton(136, 10, 76, 30, "Vehicle VIP", false, GUIEditor.tab[1]) 
        Set = guiCreateButton(182, 141, 126, 35, "Set", false, GUIEditor.tab[2]) 
        Reset = guiCreateButton(182, 186, 126, 35, "Reset", false, GUIEditor.tab[2]) 
        SetSkin = guiCreateButton(200, 188, 126, 35, "Set", false, GUIEditor.tab[4]) 
        Close = guiCreateButton(303, 454, 56, 28, "Close", false, GUIEditor.window[1])     
        GUIEditor.gridlist[1] = guiCreateGridList(7, 5, 156, 216, false, GUIEditor.tab[2]) 
        GUIEditor.gridlist[2] = guiCreateGridList(8, 4, 156, 216, false, GUIEditor.tab[4]) 
        GUIEditor.label[1] = guiCreateLabel(11, 457, 273, 25, "All copyright to G.KinG , Special thanks to The Best ", false, GUIEditor.window[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[2], "VIP Skins", 0.9) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Walking style", 0.9) 
        guiSetFont(GUIEditor.label[1], "default-bold-small") 
        guiLabelSetColor(GUIEditor.label[1], 56, 197, 196)   
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetVisible(GUIEditor.window[1], false) 
    for k,v in ipairs(Walkings) do 
    local row = guiGridListAddRow(GUIEditor.gridlist[1]) 
        guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, v[1], false, false) 
            guiGridListSetItemData(GUIEditor.gridlist[1],row,1,v[2]) 
end 
    for k,v in ipairs (Skins) do 
    local row = guiGridListAddRow(GUIEditor.gridlist[2]) 
        guiGridListSetItemText(GUIEditor.gridlist[2], row, 1, v[1], false, false) 
            guiGridListSetItemData(GUIEditor.gridlist[2], row,1,v[2]) 
        end 
    end 
) 
  
addEventHandler ( 'onClientGUIClick',root,function () 
    if source == Armor then 
        triggerServerEvent("Armor",localPlayer) 
        guiSetEnabled ( source,false ) 
        setTimer ( guiSetEnabled,100000,1,source,true ) 
    elseif source == Health then 
        triggerServerEvent("Health",localPlayer) 
        guiSetEnabled ( source,false ) 
        setTimer ( guiSetEnabled,100000,1,source,true ) 
    elseif source == Fix then 
        triggerServerEvent("Fix",localPlayer) 
    elseif source == Jetpack then 
        triggerServerEvent("Jetpack",localPlayer) 
    elseif source == VIPVehicle then 
        triggerServerEvent("VIPVehicle",localPlayer) 
    elseif source == Set then 
        if guiGridListGetSelectedItem(GUIEditor.gridlist[1]) ~= -1 then 
            local selected = guiGridListGetItemData(GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1])) 
                setPedWalkingStyle(localPlayer,selected) 
        end 
    elseif source == Reset then 
            setPedWalkingStyle(localPlayer,0) 
    elseif source == SetSkin then 
        if guiGridListGetSelectedItem(GUIEditor.gridlist[2]) ~= -1 then 
            local selected = guiGridListGetItemData(GUIEditor.gridlist[2],guiGridListGetSelectedItem(GUIEditor.gridlist[2])) 
                setElementModel(localPlayer,selected) 
        end 
    elseif source == Close then 
        guiSetVisible(GUIEditor.window[1],false) 
        showCursor(false) 
        end 
    end 
) 
  
  
  
  
addEventHandler("onClientResourceStart",resourceRoot,function() 
    engineImportTXD(engineLoadTXD("Skins/figure.txd"),12) 
    engineImportTXD(engineLoadTXD("Skins/satan.txd"),63) 
    engineImportTXD(engineLoadTXD("Skins/scream.txd"),64) 
    engineImportTXD(engineLoadTXD("Skins/ske.txd"),75) 
    engineImportTXD(engineLoadTXD("Skins/zumbi4.txd"),87) 
    engineReplaceModel(engineLoadDFF("Skins/figure.dff",0),12) 
    engineReplaceModel(engineLoadDFF("Skins/satan.dff",0),63) 
    engineReplaceModel(engineLoadDFF("Skins/scream.dff",0),64) 
    engineReplaceModel(engineLoadDFF("Skins/ske.dff",0),75) 
    engineReplaceModel(engineLoadDFF("Skins/zumbi4.dff",0),87) 
    end 
) 
  
show = function() 
    guiSetVisible ( GUIEditor.window[1] ,not guiGetVisible ( GUIEditor.window[1] ) ) 
    showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) 
    guiSetInputEnabled(guiGetVisible ( GUIEditor.window[1] )) 
  
end 
  
addEvent("bindKey",true) 
addEventHandler("bindKey",root,function() 
    bindKey ( "F7" , "down" , show ) 
    end 
) 
  
function open () 
    guiSetVisible ( GUIEditor.window[1], true ) 
        showCursor ( true ) 
    end 
addCommandHandler ( "vip", open ) 
Link to comment
كان عندي خطأ بسيط اني حطيت اللوب خارج الحدث,

-- Client Side # 
GUIEditor = { 
    tab = {}, 
    staticimage = {}, 
    tabpanel = {}, 
    label = {}, 
    button = {}, 
    window = {}, 
    gridlist = {} 
} 
  
Walkings = { 
    {'Packer', 54 }, 
    {'Ninja', 69 }, 
    {'Shuffle', 119 }, 
    {'Oldman', 120 }, 
    {'Gang 1', 121 }, 
    {'Gang 2', 122 }, 
    {'Old Fat Man', 123 }, 
    {'Fatman', 124 }, 
    {'Jogger', 125 }, 
    {'PRO', 133 }, 
    {'Shopping', 130 }, 
    {'Drunkman', 126 }, 
    {'Busywoman', 131 }, 
    {'Oldwoman', 134 } 
} 
  
    
Skins = { 
    {'Skin Figure', 12 }, 
    {'Skin Zombie', 63 }, 
    {'Skin Zombie 2', 64 }, 
    {'Skin Scream', 75 }, 
    {'Skin Ske', 87 } 
} 
  
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(225, 55, 369, 492, "VIP System", false) 
        GUIEditor.staticimage[1] = guiCreateStaticImage(9, 26, 351, 156, "VIPImage.png", false, GUIEditor.window[1]) 
        GUIEditor.tabpanel[1] = guiCreateTabPanel(11, 194, 348, 255, false, GUIEditor.window[1]) 
        GUIEditor.tab[1] = guiCreateTab("Menu Panel", GUIEditor.tabpanel[1]) 
        GUIEditor.tab[2] = guiCreateTab("Walking Styles", GUIEditor.tabpanel[1]) 
        GUIEditor.tab[4] = guiCreateTab("Skins", GUIEditor.tabpanel[1]) 
        Armor = guiCreateButton(10, 10, 76, 30, "Armor", false, GUIEditor.tab[1]) 
        Health = guiCreateButton(262, 14, 76, 30, "Health", false, GUIEditor.tab[1]) 
        Fix = guiCreateButton(10, 62, 76, 30, "Fix Vehicle", false, GUIEditor.tab[1]) 
        Jetpack = guiCreateButton(136, 62, 76, 30, "Jetpack", false, GUIEditor.tab[1]) 
        VIPVehicle = guiCreateButton(136, 10, 76, 30, "Vehicle VIP", false, GUIEditor.tab[1]) 
        Set = guiCreateButton(182, 141, 126, 35, "Set", false, GUIEditor.tab[2]) 
        Reset = guiCreateButton(182, 186, 126, 35, "Reset", false, GUIEditor.tab[2]) 
        SetSkin = guiCreateButton(200, 188, 126, 35, "Set", false, GUIEditor.tab[4]) 
        Close = guiCreateButton(303, 454, 56, 28, "Close", false, GUIEditor.window[1])     
        GUIEditor.gridlist[1] = guiCreateGridList(7, 5, 156, 216, false, GUIEditor.tab[2]) 
        GUIEditor.gridlist[2] = guiCreateGridList(8, 4, 156, 216, false, GUIEditor.tab[4]) 
        GUIEditor.label[1] = guiCreateLabel(11, 457, 273, 25, "All copyright to G.KinG , Special thanks to The Best ", false, GUIEditor.window[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[2], "VIP Skins", 0.9) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Walking style", 0.9) 
        guiSetFont(GUIEditor.label[1], "default-bold-small") 
        guiLabelSetColor(GUIEditor.label[1], 56, 197, 196)   
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetVisible(GUIEditor.window[1], false) 
    for k,v in ipairs(Walkings) do 
    local row = guiGridListAddRow(GUIEditor.gridlist[1]) 
        guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, v[1], false, false) 
            guiGridListSetItemData(GUIEditor.gridlist[1],row,1,v[2]) 
end 
    for k,v in ipairs (Skins) do 
    local row = guiGridListAddRow(GUIEditor.gridlist[2]) 
        guiGridListSetItemText(GUIEditor.gridlist[2], row, 1, v[1], false, false) 
            guiGridListSetItemData(GUIEditor.gridlist[2], row,1,v[2]) 
        end 
    end 
) 
  
addEventHandler ( 'onClientGUIClick',root,function () 
    if source == Armor then 
        triggerServerEvent("Armor",localPlayer) 
        guiSetEnabled ( source,false ) 
        setTimer ( guiSetEnabled,100000,1,source,true ) 
    elseif source == Health then 
        triggerServerEvent("Health",localPlayer) 
        guiSetEnabled ( source,false ) 
        setTimer ( guiSetEnabled,100000,1,source,true ) 
    elseif source == Fix then 
        triggerServerEvent("Fix",localPlayer) 
    elseif source == Jetpack then 
        triggerServerEvent("Jetpack",localPlayer) 
    elseif source == VIPVehicle then 
        triggerServerEvent("VIPVehicle",localPlayer) 
    elseif source == Set then 
        if guiGridListGetSelectedItem(GUIEditor.gridlist[1]) ~= -1 then 
            local selected = guiGridListGetItemData(GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1])) 
                setPedWalkingStyle(localPlayer,selected) 
        end 
    elseif source == Reset then 
            setPedWalkingStyle(localPlayer,0) 
    elseif source == SetSkin then 
        if guiGridListGetSelectedItem(GUIEditor.gridlist[2]) ~= -1 then 
            local selected = guiGridListGetItemData(GUIEditor.gridlist[2],guiGridListGetSelectedItem(GUIEditor.gridlist[2])) 
                setElementModel(localPlayer,selected) 
        end 
    elseif source == Close then 
        guiSetVisible(GUIEditor.window[1],false) 
        showCursor(false) 
        end 
    end 
) 
  
  
  
  
addEventHandler("onClientResourceStart",resourceRoot,function() 
    engineImportTXD(engineLoadTXD("Skins/figure.txd"),12) 
    engineImportTXD(engineLoadTXD("Skins/satan.txd"),63) 
    engineImportTXD(engineLoadTXD("Skins/scream.txd"),64) 
    engineImportTXD(engineLoadTXD("Skins/ske.txd"),75) 
    engineImportTXD(engineLoadTXD("Skins/zumbi4.txd"),87) 
    engineReplaceModel(engineLoadDFF("Skins/figure.dff",0),12) 
    engineReplaceModel(engineLoadDFF("Skins/satan.dff",0),63) 
    engineReplaceModel(engineLoadDFF("Skins/scream.dff",0),64) 
    engineReplaceModel(engineLoadDFF("Skins/ske.dff",0),75) 
    engineReplaceModel(engineLoadDFF("Skins/zumbi4.dff",0),87) 
    end 
) 
  
show = function() 
    guiSetVisible ( GUIEditor.window[1] ,not guiGetVisible ( GUIEditor.window[1] ) ) 
    showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) 
    guiSetInputEnabled(guiGetVisible ( GUIEditor.window[1] )) 
  
end 
  
addEvent("bindKey",true) 
addEventHandler("bindKey",root,function() 
    bindKey ( "F7" , "down" , show ) 
    end 
) 
  
function open () 
    guiSetVisible ( GUIEditor.window[1], true ) 
        showCursor ( true ) 
    end 
addCommandHandler ( "vip", open ) 

يعطيك آلعآفيةة وتعبناك شوي ذا بيست ^^ :D

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