local Places = {
{ "النخيل", { 2123.62622, 1397.25793, 10.81252 } }
}
local Find = string["find"]
function RefreshGridList( StringToFind )
StringToFind = StringToFind or ""
for Index = 1, #Places do
local Value = Places[Index]
local PlaceName = Value[1]
if ( Find( PlaceName, StringToFind ) ) then
local Row = guiGridListAddRow( grid )
guiGridListSetItemText( grid, Row, 1, PlaceName, false, false )
guiGridListSetItemData( grid, Row, 1, Value[2] )
end
end
end
addEventHandler( "onClientGUIChanged", متغير الإيديت,
function()
RefreshGridList( guiGetText( source ) )
end )
Places = متغير الجدول
Code By #CroSs