local Edit = guiCreateEdit( 0, 0, 0, 0, "", true )
local list = guiCreateGridList ( 0, 0, 0, 0, true )
guiGridListAddColumn( list, "Vehicles", 0.80 )
guiEditSetMaxLength( Edit, 3 )
addEventHandler( "onClientGUIChanged", resourceRoot, function ( element )
if ( element == Edit ) then
if not ( tonumber( guiGetText( element ) ) ) then
return guiSetText( element, "" )
else
Row = guiGridListAddRow( list )
guiGridListSetItemText( list, Row, 1, "Car ID "..tonumber( guiGetText( element ) ), false, false )
end
end
end )