والله مفهمت شي ضض
ملف كلينت
addEventHandler( "onClientGUIClick", root,
function()
local NK = guiGetText( nkedit1 )
local NKC = guiGetText( nkedit2 )
if source == con then
guiGridListClear( grdnk )
for i, v in ipairs( getElementsByType( 'player' ) ) do
local Row = guiGridListAddRow( grdnk )
guiGridListSetItemText( grdnk, Row, 1, tostring( getPlayerName( v ) ):gsub( "%x%x%x%x%x%x", "" )..",", false, false )
guiGridListSetItemText( grdnk, Row, 2, NK..",", false, false )
guiGridListSetItemText( grdnk, Row, 3, NKC..",", false, false )
end
end
end
)
addEvent("row", true)
addEventHandler("row", root,
function()
local Row = guiGridListAddRow( grdnk )
guiGridListSetItemText( grdnk, Row, 1, tostring( getPlayerName( v ) ):gsub( "%x%x%x%x%x%x", "" )..",", false, false )
guiGridListSetItemText( grdnk, Row, 2, NK..",", false, false )
guiGridListSetItemText( grdnk, Row, 3, NKC..",", false, false )
end
)
ملف سيرفر
function roo ( )
triggerClientEvent( source, "row", source )
setAccountData( source, "Save", true )
end
addEventHandler( "onResourceStart", root, roo )
ما فهمت ض