Jump to content

طلب شرح


Recommended Posts

function onStart ( ) 
  local s,x = guiGetScreenSize () 
  local sx, sy, sz = getWorldFromScreenPosition ( s/2, x/2, 5 ) 
  ped = createPed ( 0, sx, sy, sz,180 ) 
  setElementFrozen ( ped,true ) 
  setCameraMatrix ( 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316 ) 
  outputChatBox ( '* Welcome At Our Servers Have Fun!',0,255,0 ) 
end 
  
onStart ( ) 
  
aSkins = {  
    { 'CJ',0 }, 
    { 'KSA',46 }, 
    { 'Test',1 } 
} 
  
for _,v in ipairs ( aSkins ) do 
    row = guiGridListAddRow ( GridList )  
        guiGridListSetItemText ( GridList,row,Column,v[1],false,false ) 
        guiGridListSetItemData ( GridList,row,Column,v[2] ) 
end 
  
addEventHandler('onClientGUIClick',GridList, 
    function (      ) 
        if guiGridListGetSelectedItem ( GridList ) ~= -1 then 
            setElementModel ( ped,guiGridListGetItemData ( GridList,guiGridListGetSelectedItem ( GridList ), Column ) ) 
    end 
end,false 
) 

سويت لك هالكود كملة كلنت بس انت سوي اللستة بـ متغير

GridList > ذذ وجربة وشوف

الشخصيات مايحطها في القريد لست

   GridList = guiCreateGridList(9, 32, 264, 337, false, wnd) 

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