Jump to content

Code#


Recommended Posts

  • Replies 79
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

شيلتا لكود خالص

ما فتحت @

ranks = { 
{'1-',Army}, 
{'1-',Army}, 
{'1-',Army}, 
} 
  
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        wnd = guiCreateWindow(242, 139, 318, 332, ":: Skins Systeam :", false) 
        guiWindowSetSizable(wnd, false) 
        guiSetVisible(wnd, false) 
        grid = guiCreateGridList(9, 23, 289, 207, false, wnd) 
        guiGridListAddColumn(grid, "Name", 0.9) 
        btn = guiCreateButton(17, 254, 276, 47, "Buy", false, wnd)     
    end 
) 
  
  
bindKey ('m','down',key) 
guiSetVisible (wnd,not guiGetVisible (wnd)) 
showCursor (guiGetVisible (wnd)) 
end) 
  
  
for _, v in ipairs (ranks) do 
    local Row = guiGridListAddRow(grid) 
    guiGridListSetItemText(grid, Row, 1, v[1], false, false) 
    guiGridListSetItemText(grid, Row, 2, v[2], false, false) 
    guiGridListSetItemData ( grid, Row, 1, { v[2], v[3], v[4] } ) 
end 

Link to comment
شيلتا لكود خالص

ما فتحت @

ranks = { 
{'1-',Army}, 
{'1-',Army}, 
{'1-',Army}, 
} 
  
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        wnd = guiCreateWindow(242, 139, 318, 332, ":: Skins Systeam :", false) 
        guiWindowSetSizable(wnd, false) 
        guiSetVisible(wnd, false) 
        grid = guiCreateGridList(9, 23, 289, 207, false, wnd) 
        guiGridListAddColumn(grid, "Name", 0.9) 
        btn = guiCreateButton(17, 254, 276, 47, "Buy", false, wnd)     
    end 
) 
  
  
bindKey ('m','down',key) 
guiSetVisible (wnd,not guiGetVisible (wnd)) 
showCursor (guiGetVisible (wnd)) 
end) 
  
  
for _, v in ipairs (ranks) do 
    local Row = guiGridListAddRow(grid) 
    guiGridListSetItemText(grid, Row, 1, v[1], false, false) 
    guiGridListSetItemText(grid, Row, 2, v[2], false, false) 
    guiGridListSetItemData ( grid, Row, 1, { v[2], v[3], v[4] } ) 
end 

Link to comment
--client 
addEventHandler("onGUIClientClick" ,resourceRoot , 
function () 
local SkinID = guiGridListGetItemText(Gridlist ,guiGridListGetSelectedItem(Gridlist) ,1) 
if ( source == btn ) then 
triggerServerEvent("SetSkin" ,localPlayer ,SkinID) 
end 
end 
) 
  
  
--server 
addEvent("SetSkin" ,true) 
addEventHandler("SetSkin" ,root, 
function (ID) 
PMoney = getPlayerMoney(source) 
if PMoney >= 2500 then 
setElementModel(source ,ID) 
takePlayerMoney(source,2500) 
else 
outputChatBox("U don't have 2500$") 
end 
end 
) 
  

Link to comment
--client 
addEventHandler("onGUIClientClick" ,resourceRoot , 
function () 
local SkinID = guiGridListGetItemText(Gridlist ,guiGridListGetSelectedItem(Gridlist) ,1) 
if ( source == btn ) then 
triggerServerEvent("SetSkin" ,localPlayer ,SkinID) 
end 
end 
) 
  
  
--server 
addEvent("SetSkin" ,true) 
addEventHandler("SetSkin" ,root, 
function (ID) 
PMoney = getPlayerMoney(source) 
if PMoney >= 2500 then 
setElementModel(source ,ID) 
takePlayerMoney(source,2500) 
else 
outputChatBox("U don't have 2500$") 
end 
end 
) 
  

Link to comment
--client 
addEventHandler("onGUIClientClick" ,resourceRoot , 
function () 
local SkinID = guiGridListGetItemText(Gridlist ,guiGridListGetSelectedItem(Gridlist) ,1) 
if ( source == btn ) then 
triggerServerEvent("SetSkin" ,localPlayer ,SkinID) 
end 
end 
) 
  
  
--server 
addEvent("SetSkin" ,true) 
addEventHandler("SetSkin" ,root, 
function (ID) 
PMoney = getPlayerMoney(source) 
if PMoney >= 2500 then 
setElementModel(source ,ID) 
takePlayerMoney(source,2500) 
else 
outputChatBox("U don't have 2500$") 
end 
end 
) 
  

بدل ID

بـــ

SkinID

Link to comment
--client 
addEventHandler("onGUIClientClick" ,resourceRoot , 
function () 
local SkinID = guiGridListGetItemText(Gridlist ,guiGridListGetSelectedItem(Gridlist) ,1) 
if ( source == btn ) then 
triggerServerEvent("SetSkin" ,localPlayer ,SkinID) 
end 
end 
) 
  
  
--server 
addEvent("SetSkin" ,true) 
addEventHandler("SetSkin" ,root, 
function (ID) 
PMoney = getPlayerMoney(source) 
if PMoney >= 2500 then 
setElementModel(source ,ID) 
takePlayerMoney(source,2500) 
else 
outputChatBox("U don't have 2500$") 
end 
end 
) 
  

بدل ID

بـــ

SkinID

Link to comment

الوحه تفتح تمام

بس مش بيظهر الفي الجدول في القريد لست

ranks = { 
{'1-',Army}, 
{'1-',Army}, 
{'1-',Army} 
} 
  
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        wnd = guiCreateWindow(242, 139, 318, 332, ":: Skins Systeam :", false) 
        guiWindowSetSizable(wnd, false) 
        guiSetVisible(wnd, false) 
        grid = guiCreateGridList(9, 23, 289, 207, false, wnd) 
        guiGridListAddColumn(grid, "Name", 0.9) 
        btn = guiCreateButton(17, 254, 276, 47, "Buy", false, wnd)     
    end 
) 
  
  
bindKey("x","down", 
  
    function (  ) 
  
    guiSetVisible ( wnd , not guiGetVisible ( wnd ) ) 
  
    showCursor ( not isCursorShowing (  ) ) 
  
end     ); 
  
  
for _, v in ipairs (ranks) do 
    local Row = guiGridListAddRow(grid) 
    guiGridListSetItemText(grid, Row, 1, v[1], false, false) 
    guiGridListSetItemText(grid, Row, 2, v[2], false, false) 
    guiGridListSetItemData ( grid, Row, 1, { v[2], v[3], v[4] } ) 
end 

ونا حاطط الاكواد :shock:

Link to comment

الوحه تفتح تمام

بس مش بيظهر الفي الجدول في القريد لست

ranks = { 
{'1-',Army}, 
{'1-',Army}, 
{'1-',Army} 
} 
  
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        wnd = guiCreateWindow(242, 139, 318, 332, ":: Skins Systeam :", false) 
        guiWindowSetSizable(wnd, false) 
        guiSetVisible(wnd, false) 
        grid = guiCreateGridList(9, 23, 289, 207, false, wnd) 
        guiGridListAddColumn(grid, "Name", 0.9) 
        btn = guiCreateButton(17, 254, 276, 47, "Buy", false, wnd)     
    end 
) 
  
  
bindKey("x","down", 
  
    function (  ) 
  
    guiSetVisible ( wnd , not guiGetVisible ( wnd ) ) 
  
    showCursor ( not isCursorShowing (  ) ) 
  
end     ); 
  
  
for _, v in ipairs (ranks) do 
    local Row = guiGridListAddRow(grid) 
    guiGridListSetItemText(grid, Row, 1, v[1], false, false) 
    guiGridListSetItemText(grid, Row, 2, v[2], false, false) 
    guiGridListSetItemData ( grid, Row, 1, { v[2], v[3], v[4] } ) 
end 

ونا حاطط الاكواد :shock:

Link to comment
--client 
addEventHandler("onGUIClientClick" ,resourceRoot , 
function () 
local SkinID = guiGridListGetItemText(Gridlist ,guiGridListGetSelectedItem(Gridlist) ,1) 
if ( source == btn ) then 
triggerServerEvent("SetSkin" ,localPlayer ,SkinID) 
end 
end 
) 
  
  
--server 
addEvent("SetSkin" ,true) 
addEventHandler("SetSkin" ,root, 
function (ID) 
PMoney = getPlayerMoney(source) 
if PMoney >= 2500 then 
setElementModel(source ,ID) 
takePlayerMoney(source,2500) 
else 
outputChatBox("U don't have 2500$") 
end 
end 
) 
  

بدل ID

بـــ

SkinID

مايضر اذا غيرت اسم المتغير بعد استقباله :]

Edited by Guest
Link to comment
--client 
addEventHandler("onGUIClientClick" ,resourceRoot , 
function () 
local SkinID = guiGridListGetItemText(Gridlist ,guiGridListGetSelectedItem(Gridlist) ,1) 
if ( source == btn ) then 
triggerServerEvent("SetSkin" ,localPlayer ,SkinID) 
end 
end 
) 
  
  
--server 
addEvent("SetSkin" ,true) 
addEventHandler("SetSkin" ,root, 
function (ID) 
PMoney = getPlayerMoney(source) 
if PMoney >= 2500 then 
setElementModel(source ,ID) 
takePlayerMoney(source,2500) 
else 
outputChatBox("U don't have 2500$") 
end 
end 
) 
  

بدل ID

بـــ

SkinID

مايضر اذا غيرت اسم المتغير بعد استقباله :]

Edited by Guest
Link to comment
ranks = { 
{'1-',Army}, 
{'1-',Army}, 
{'1-',Army} 
} 
  
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        wnd = guiCreateWindow(242, 139, 318, 332, ":: Skins Systeam :", false) 
        guiWindowSetSizable(wnd, false) 
        guiSetVisible(wnd, false) 
        grid = guiCreateGridList(9, 23, 289, 207, false, wnd) 
        guiGridListAddColumn(grid, "Name", 0.9) 
        btn = guiCreateButton(17, 254, 276, 47, "Buy", false, wnd)     
    end 
) 
  
  
bindKey("x","down", 
  
    function (  ) 
  
    guiSetVisible ( wnd , not guiGetVisible ( wnd ) ) 
    SetSkins() 
    showCursor ( not isCursorShowing (  ) ) 
  
end     ); 
  
function SetSkins() 
for _, v in ipairs (ranks) do 
    local Row = guiGridListAddRow(grid) 
    guiGridListSetItemText(grid, Row, 1, v[1], false, false) 
    guiGridListSetItemText(grid, Row, 2, v[2], false, false) 
end 
end 

Edited by Guest
Link to comment
ranks = { 
{'1-',Army}, 
{'1-',Army}, 
{'1-',Army} 
} 
  
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        wnd = guiCreateWindow(242, 139, 318, 332, ":: Skins Systeam :", false) 
        guiWindowSetSizable(wnd, false) 
        guiSetVisible(wnd, false) 
        grid = guiCreateGridList(9, 23, 289, 207, false, wnd) 
        guiGridListAddColumn(grid, "Name", 0.9) 
        btn = guiCreateButton(17, 254, 276, 47, "Buy", false, wnd)     
    end 
) 
  
  
bindKey("x","down", 
  
    function (  ) 
  
    guiSetVisible ( wnd , not guiGetVisible ( wnd ) ) 
    SetSkins() 
    showCursor ( not isCursorShowing (  ) ) 
  
end     ); 
  
function SetSkins() 
for _, v in ipairs (ranks) do 
    local Row = guiGridListAddRow(grid) 
    guiGridListSetItemText(grid, Row, 1, v[1], false, false) 
    guiGridListSetItemText(grid, Row, 2, v[2], false, false) 
end 
end 

Edited by Guest
Link to comment
ranks = { 
{'1-',Army}, 
{'1-',Army}, 
{'1-',Army} 
} 

اسم القريد لست

grid

for _, v in ipairs (ranks) do 
    local Row = guiGridListAddRow(grid) 
    guiGridListSetItemText(grid, Row, 1, v[1], false, false) 
    guiGridListSetItemText(grid, Row, 2, v[2], false, false) 
    guiGridListSetItemData ( grid, Row, 1, { v[2], v[3], v[4] } ) 
end 

Link to comment
ranks = { 
{'1-',Army}, 
{'1-',Army}, 
{'1-',Army} 
} 

اسم القريد لست

grid

for _, v in ipairs (ranks) do 
    local Row = guiGridListAddRow(grid) 
    guiGridListSetItemText(grid, Row, 1, v[1], false, false) 
    guiGridListSetItemText(grid, Row, 2, v[2], false, false) 
    guiGridListSetItemData ( grid, Row, 1, { v[2], v[3], v[4] } ) 
end 

Link to comment

تمام

لما باجي بضعط علي واحده في القريد لست

مب بيغير الشخصيه

ومعي الفلوس

كلنت

ranks = { 
{'Army',Army}, 
{'Army',Army}, 
{'Army',Army} 
} 
  
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        wnd = guiCreateWindow(242, 139, 318, 332, ":: Skins Systeam :", false) 
        guiWindowSetSizable(wnd, false) 
        guiSetVisible(wnd, false) 
        grid = guiCreateGridList(9, 23, 289, 207, false, wnd) 
        guiGridListAddColumn(grid, "Name", 0.9) 
        btn = guiCreateButton(17, 254, 276, 47, "Buy", false, wnd)     
    end 
) 
  
  
bindKey("x","down", 
  
    function (  ) 
  
    guiSetVisible ( wnd , not guiGetVisible ( wnd ) ) 
    SetSkins() 
    showCursor ( not isCursorShowing (  ) ) 
  
end     ); 
  
function SetSkins() 
for _, v in ipairs (ranks) do 
    local Row = guiGridListAddRow(grid) 
    guiGridListSetItemText(grid, Row, 1, v[1], false, false) 
    guiGridListSetItemText(grid, Row, 2, v[2], false, false) 
    guiGridListSetItemData ( grid, Row, 1, { v[2], v[3], v[4] } ) 
end 
end 
  
addEventHandler("onGUIClientClick" ,resourceRoot , 
function () 
local SkinID = guiGridListGetItemText(grid ,guiGridListGetSelectedItem(grid) ,1) 
if ( source == btn ) then 
triggerServerEvent("SetSkin" ,localPlayer ,15) 
end 
end 
) 

server

addEvent("SetSkin" ,true) 
addEventHandler("SetSkin" ,root, 
function (ID) 
PMoney = getPlayerMoney(source) 
if PMoney >= 2500 then 
setElementModel(source ,ID) 
takePlayerMoney(source,2500) 
else 
outputChatBox("U don't have 2500$") 
end 
end 
) 

Edited by Guest
Link to comment

تمام

لما باجي بضعط علي واحده في القريد لست

مب بيغير الشخصيه

ومعي الفلوس

كلنت

ranks = { 
{'Army',Army}, 
{'Army',Army}, 
{'Army',Army} 
} 
  
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        wnd = guiCreateWindow(242, 139, 318, 332, ":: Skins Systeam :", false) 
        guiWindowSetSizable(wnd, false) 
        guiSetVisible(wnd, false) 
        grid = guiCreateGridList(9, 23, 289, 207, false, wnd) 
        guiGridListAddColumn(grid, "Name", 0.9) 
        btn = guiCreateButton(17, 254, 276, 47, "Buy", false, wnd)     
    end 
) 
  
  
bindKey("x","down", 
  
    function (  ) 
  
    guiSetVisible ( wnd , not guiGetVisible ( wnd ) ) 
    SetSkins() 
    showCursor ( not isCursorShowing (  ) ) 
  
end     ); 
  
function SetSkins() 
for _, v in ipairs (ranks) do 
    local Row = guiGridListAddRow(grid) 
    guiGridListSetItemText(grid, Row, 1, v[1], false, false) 
    guiGridListSetItemText(grid, Row, 2, v[2], false, false) 
    guiGridListSetItemData ( grid, Row, 1, { v[2], v[3], v[4] } ) 
end 
end 
  
addEventHandler("onGUIClientClick" ,resourceRoot , 
function () 
local SkinID = guiGridListGetItemText(grid ,guiGridListGetSelectedItem(grid) ,1) 
if ( source == btn ) then 
triggerServerEvent("SetSkin" ,localPlayer ,15) 
end 
end 
) 

server

addEvent("SetSkin" ,true) 
addEventHandler("SetSkin" ,root, 
function (ID) 
PMoney = getPlayerMoney(source) 
if PMoney >= 2500 then 
setElementModel(source ,ID) 
takePlayerMoney(source,2500) 
else 
outputChatBox("U don't have 2500$") 
end 
end 
) 

Edited by Guest
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...